hi
i am new in flex
i have completed to connect flex and java using blazeds.
my project have many mxml files and actionscripts.
so i want to compile flex project using compc.
this my ant file.
if i execute ant build.xml the errors
is
[compc] command line: Error: unable to open 'Reg'
[compc] Use 'compc -help' for information about using the command
line.
My project name is Reg
<project name="Reg" default="build" basedir=".">
<!-- ===================== Property Definitions
=========================== -->
<property file="build.properties" />
<property file="${user.home}/build.properties" />
<!-- ==================== File and Directory Names
======================== -->
<property name="app.name" value="Reg" />
<property name="app.path" value="/${app.name}" />
<property name="appname_main" value="Reg"/>
<property name="app.version" value="0.1-dev" />
<property name="build.home" value="${basedir}/build" />
<property name="catalina.home" value="C:\Program Files\Apache
Software Foundation\Tomcat 6.0" />
<property name="dist.home" value="${basedir}/dist" />
<property name="docs.home" value="${basedir}/docs" />
<property name="manager.url" value="http://localhost:8080/manager" />
<property name="src.home" value="${basedir}/src" />
<property name="flexsrc.home" value="${basedir}/flex_src" />
<property name="swfOut" value="dist/${app.name}.swf" />
<property name="web.home" value="${basedir}/WebContent" />
<property name="manager.username" value="admin" />
<property name="manager.password" value="viji" />
<property name="FLEX_HOME" value="C:\Program Files\Adobe\Adobe Flash
Builder 4 Plug-in\sdks\4.0.0\" />
<property name="APP_ROOT" value="${basedir}/WebContent" />
<property name="bin.home" value="${basedir}/bin-debug" />
<!-- ==================== External Dependencies
=========================== -->
<!-- ==================== Compilation Classpath
=========================== -->
<path id="compile.classpath">
<fileset dir="${catalina.home}/bin">
<include name="*.jar" />
</fileset>
<pathelement location="${catalina.home}/lib" />
<fileset dir="${catalina.home}/lib">
<include name="*.jar" />
</fileset>
</path>
<!-- ================== Custom Ant Task Definitions
======================= -->
<taskdef resource="org/apache/catalina/ant/catalina.tasks"
classpathref="compile.classpath" />
<taskdef resource="flexTasks.tasks" classpath="c:/ant/lib/
flexTasks.jar" />
<!-- ==================== Compilation Control Options
==================== -->
<property name="compile.debug" value="true" />
<property name="compile.deprecation" value="false" />
<property name="compile.optimize" value="true" />
<!-- ==================== All Target
====================================== -->
<target name="all" depends="clean,build" description="Clean build and
dist directories, then compile" />
<!-- ==================== Clean Target
==================================== -->
<target name="clean" description="Delete old build and dist
directories">
<delete dir="${build.home}" />
<delete dir="${dist.home}" />
</target>
<!-- ==================== Compile Target
================================== -->
<target name="build" depends="prepare" description="Compile Java
sources">
<!-- Compile Java classes as necessary -->
<mkdir dir="${build.home}/WEB-INF/classes" />
<javac srcdir="${src.home}" destdir="${build.home}/WEB-INF/classes"
debug="${compile.debug}" deprecation="${compile.deprecation}"
optimize="${compile.optimize}">
<classpath refid="compile.classpath" />
</javac>
<!-- Copy application resources -->
<copy todir="${build.home}/WEB-INF/classes">
<fileset dir="${src.home}" excludes="**/*.java" />
</copy>
</target>
<!-- ==================== Dist Target
===================================== -->
<target name="dist" depends="build,javadoc" description="Create
binary distribution">
<!-- Copy documentation subdirectories -->
<mkdir dir="${dist.home}/docs" />
<copy todir="${dist.home}/docs">
<fileset dir="${docs.home}" />
</copy>
<!-- Create application JAR file -->
<jar jarfile="${dist.home}/${app.name}-${app.version}.war" basedir="$
{build.home}" />
<!-- Copy additional files to ${dist.home} as necessary -->
</target>
<!-- ==================== Flex targets
==================================== -->
<target name="appcompile" depends="install">
<compc
output="${bin.home}/CampusPage.swc">
<source-path
path-element="${FLEX_HOME}/frameworks" />
<source-path path-element="${app.name}"
/>
<compiler.library-path
dir="${FLEX_HOME}/frameworks">
<include
name="${web.home}/WEB-INF/lib/" />
<include
name="${flexsrc.home}/example/" />
<include
name="$(src.home)//"/>
</compiler.library-path>
</compc>
</target>
<target name="createHtmlWrapper" depends="appcompile">
<html-wrapper application="${APP_ROOT}/CampusPage.mxml"
height="1000" width="1000" output="${catalina.home}/webapps/$
{app.name}" swf="CampusPage" />
</target>
<!-- ==================== Install Target
================================== -->
<target name="install" depends="build" description="Install
application to servlet container">
<deploy url="${manager.url}" username="${manager.username}"
password="${manager.password}" path="${app.path}" localWar="file://$
{build.home}"/>
</target>
<!-- ==================== Javadoc Target
================================== -->
<target name="javadoc" depends="build" description="Create Javadoc
API documentation">
<mkdir dir="${dist.home}/docs/api" />
<javadoc sourcepath="${src.home}" destdir="${dist.home}/docs/api"
packagenames="*">
<classpath refid="compile.classpath" />
</javadoc>
</target>
<!-- ====================== List Target
=================================== -->
<target name="list" description="List installed applications on
servlet container">
<list url="${manager.url}" username="${manager.username}" password="$
{manager.password}" />
</target>
<!-- ==================== Prepare Target
================================== -->
<target name="prepare">
<!-- Create build directories as needed -->
<mkdir dir="${build.home}" />
<mkdir dir="${build.home}/WEB-INF" />
<mkdir dir="${build.home}/WEB-INF/classes" />
<mkdir dir="${build.home}/html" />
<!-- Copy static content of this web application -->
<copy todir="${build.home}">
<fileset dir="${web.home}" />
</copy>
<!-- Copy external dependencies as required -->
<mkdir dir="${build.home}/WEB-INF/lib" />
<!-- Copy static files from external dependencies as needed -->
<!-- *** CUSTOMIZE HERE AS REQUIRED BY YOUR APPLICATION *** -->
<copy todir="${build.home}/html">
<fileset dir="${bin.home}" />
</copy>
</target>
<!-- ==================== Reload Target
=================================== -->
<target name="reload" depends="build" description="Reload application
on servlet container">
<reload url="${manager.url}" username="${manager.username}"
password="${manager.password}" path="${app.path}" />
</target>
<!-- ==================== Remove Target
=================================== -->
<target name="remove" description="Remove application on servlet
container">
<undeploy url="${manager.url}" username="${manager.username}"
password="${manager.password}" path="${app.path}" />
</target>
</project>
anybody help me
regards
athi
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.