--- In [email protected], "skitj5558" <[EMAIL PROTECTED]> wrote:
>Here is the services-config.xml

<?xml version="1.0" encoding="UTF-8"?>
<services-config>

   <services>
      <service-include file-path="remoting-config.xml" />
   </services>

   <channels>
      <channel-definition id="my-amfphp"
class="mx.messaging.channels.AMFChannel">
         <endpoint
uri="http://localhost/xampp/eventsmonitor/src/php/amfphp/gateway.php";
class="flex.messaging.endpoints.AMFEndpoint"/>
      </channel-definition>
   </channels>

</services-config>

And remote-config.xml

<?xml version="1.0" encoding="utf-8" ?>
<service id="amfphp-flashremoting-service"
class="flex.messaging.services.RemotingService"
messageTypes="flex.messaging.messages.RemotingMessage">

   <default-channels>
      <channel ref="my-amfphp"/>
   </default-channels>

   <destination id="emService">
      <properties>
         <source>*</source>
      </properties>
   </destination>

</service>
> 
> Thank you for the ant example.  Could you provide what your
> services-config.xml file (${config.home}\flex\services-config.xml)
> contains.  That is the only difference I can see between our examples.
>  I have attempted to use the supplied ant file directly, but do not
> have a services-config.xml file.
> 
> Thanks,
> TJ
> 
> --- In [email protected], "robert_ramirez44"
> <robert_ramirez44@> wrote:
> >
> > --- In [email protected], "skitj5558" <tj.opensrc@> wrote:
> > > Here is a is a working ANT file for AMFPHP. Just ignore the
> > config-services stuff, that is for AMFPHP.
> > 
> >   <?xml version="1.0" encoding="utf-8" ?> 
> > - <project name="Events Monitor" basedir=".">
> >   <taskdef resource="flexTasks.tasks" /> 
> >   <property name="FLEX_HOME" location="C:\flexsdk3" /> 
> >   <property name="app.name" value="EventsMonitor" /> 
> >   <property name="build.home" location="${basedir}/build" /> 
> >   <property name="src.home" location="${basedir}/src" /> 
> >   <property name="lib.home" location="${basedir}/lib" /> 
> >   <property name="config.home" location="${basedir}/config" /> 
> >   <property name="dist.home" location="${basedir}/dist" /> 
> > - <target name="clean">
> > - <delete includeemptydirs="true">
> >   <fileset dir="${build.home}" includes="**/*" /> 
> >   <fileset dir="${dist.home}" includes="**/*" /> 
> >   </delete>
> >   </target>
> > - <target name="prepare">
> >   <mkdir dir="${build.home}/${app.name}" /> 
> > - <copy todir="${build.home}/${app.name}">
> >   <fileset dir="${src.home}/php" /> 
> >   </copy>
> >   </target>
> > - <target name="compile" depends="clean,prepare">
> > - <mxmlc file="${src.home}/flex/Main.mxml"
> > output="${build.home}/${app.name}/Main.swf"
> > actionscript-file-encoding="UTF-8" context-root="${app.name}"
> > services="${config.home}\flex\services-config.xml">
> > - <!--  Get default compiler options. 
> >   --> 
> >   <load-config filename="${FLEX_HOME}\frameworks\flex-config.xml" /> 
> > - <!--  List of path elements that form the roots of ActionScript
> > class hierarchies. 
> >   --> 
> >   <source-path path-element="${FLEX_HOME}/frameworks" /> 
> >   <source-path path-element="${src.home}/flex" /> 
> > - <!--  List of SWC files or directories that contain SWC files. 
> >   --> 
> > - <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
> >   <include name="libs" /> 
> >   <include name="../bundles/{locale}" /> 
> >   <include name="${lib.home}/flex/" /> 
> >   </compiler.library-path>
> > - <!--  Set size of output SWF file. 
> >   --> 
> >   <default-size width="500" height="600" /> 
> >   </mxmlc>
> >   </target>
> > - <target name="dist" depends="compile">
> >   <zip destfile="${dist.home}/${app.name}.zip" basedir="${build.home}"
> > update="true" /> 
> >   </target>
> > - <!-- <target name="deploy" depends="compile">
> >    <ftp server="[SERVER_NAME]"
> >       remotedir="/home/username/www/${app.name}"
> >       userid="username"
> >       password="password"
> >       depends="yes">
> >       <fileset dir="${build.home}/${app.name}"/>
> >    </ftp>
> > </target>
> > 
> >   --> 
> >   </project>
> > > Hi,
> > > 
> > > I am new to Flex and have been working to create an ant build that
> > > will automate the build process used by the flex builder plugin for
> > > eclipse.  I am having problems generating a workable swf from my
> > > project in ant, when the same source works fine when built with
> Eclipse.
> > > 
> > > Here are the details for my project.  We broke the project out into
> > > three modules: air, common and web.  Both air and web utilize the
> > > source from the common module.  The common module is linked through
> > > the flex build path in eclipse.  For ant, I added both the web and
> > > common source path to the mxmlc task.  We are also using the
Cairngorm
> > > library which I add to the compile-libraries and external-libraries
> > > when building.  
> > > 
> > > Below is the ant build file:
> > > <?xml version="1.0"?>
> > > 
> > > <project default="compile-flex" basedir="." name="RRS Flex Tasks">
> > >   <property environment="env"/>
> > >   <taskdef resource="flexTasks.tasks"
> > > classpath="${env.FLEX_HOME}/ant/lib/flexTasks.jar" />
> > >   <taskdef name="mxmlc" classname="flex.ant.MxmlcTask"
> > > classpath="${env.FLEX_HOME}/ant/lib/flexTasks.jar" />
> > >   
> > >   <!-- Define Properties -->
> > >   <property name="FLEX_HOME" value="${env.FLEX_HOME}"/>
> > >   <property name="WEB_ROOT" value="src/main/flex/web"/>  
> > >   <property name="COMMON_ROOT" value="src/main/flex/common"/>
> > >   
> > >   <target name="compile-flex">
> > >          
> > >           <mxmlc 
> > >             file="${WEB_ROOT}/src/WebClient.mxml" 
> > >             output="${WEB_ROOT}/Web.swf"
> > >             actionscript-file-encoding="UTF-8"
> > >             keep-generated-actionscript="true"
> > >             incremental="true"
> > >                   compiler.show-actionscript-warnings="false"
> > >                   compiler.show-binding-warnings="false"
> > >                   compiler.show-unused-type-selector-warnings="false"
> > >                   compiler.strict="false">
> > >                   
> > >             <!-- Get default compiler options. -->
> > >             <load-config
> > > filename="${FLEX_HOME}/frameworks/flex-config.xml"/>            
> > >             <!-- List of path elements that form the roots of
> > > ActionScript class hierarchies. -->
> > >                   <compiler.source-path 
> > > path-element="${COMMON_ROOT}/src"/>
> > >                   <compiler.source-path path-element="${WEB_ROOT}/src"/>
> > >                   
> > >                   <external-library-path dir="${COMMON_ROOT}/libs"
> > > includes="Cairngorm.swc"/>
> > >                   <compiler.include-libraries 
> > > dir="${FLEX_HOME}/frameworks"
> > > append="true">
> > >                 <include name="libs" />
> > >                 <include name="../bundles/{locale}" />
> > >                   <include name="${COMMON_ROOT}/libs" />
> > >                   <include name="${COMMON_ROOT}/libs/Cairngorm.swc" />
> > >             </compiler.include-libraries>
> > >                   <!-- List of SWC files or directories that contain SWC 
> > > files. -->
> > >             <compiler.library-path dir="${FLEX_HOME}/frameworks"
> > > append="true">
> > >                 <include name="libs" />
> > >                 <include name="../bundles/{locale}" />
> > >                   <include name="${COMMON_ROOT}/libs" />
> > >                   <include name="${COMMON_ROOT}/libs/Cairngorm.swc" />
> > >             </compiler.library-path>
> > >         </mxmlc>
> > > 
> > >      </target>  
> > > 
> > > </project>
> > > 
> > > I have searched the web and also looked through adobe labs ant
tasks,
> > > as well as the help list for the mxmlc compiler, but I have had no
> > > luck.  Any ideas or thoughts would be greatly appreciated.
> > > 
> > > Thank you in advance!
> > > TJ Greenier
> > >
> >
>


Reply via email to