Showing paste #ne4h4 by alinakazi@apache.org: (Show raw paste)

<?xml version="1.0"?>
<!--

  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

-->


<project name="src" default="main" basedir=".">
    <property name="PROJECT_HOME" location="."/>
    
    <property file="${PROJECT_HOME}/env.properties"/>
    <property environment="env"/>
    <property file="${PROJECT_HOME}/build.properties"/>
    <property file="${PROJECT_HOME}/local.properties"/>
    
    <property name="ROYALE_COMPILER_HOME" value="${ROYALE_HOME}/js" />
    <property name="target.name" value="${ant.project.name}.swc" />

    <target name="main" depends="compile-ProjectFiles" description="Full build of ${ant.project.name}.swc">
     </target>                
     <target name="clean">
        <delete failonerror="false" includeemptydirs="true">
            <fileset dir="${basedir}/target">
                <include name="**/**"/>
            </fileset>
        </delete>
    </target>
     
    <path id="lib.path">
        <fileset dir="${ROYALE_HOME}/js/lib" includes="compiler-royaleTasks.jar"/>
        <fileset dir="${ROYALE_HOME}/js/lib" includes="jsc.jar"/>
    </path>
    

   
	  <target name="compile-ProjectFiles" description="Compiles .as and mxml files into .swc" >
        <echo message="Compiling ProjectFiles.swc"/>
        <echo message="ROYALE_HOME: ${ROYALE_HOME}"/>
        <mkdir dir="${basedir}/target" />
        <taskdef resource="flexTasks.tasks" classpathref="lib.path"/>
        
        <compc fork="true"
               debug="true"
               output="${basedir}/target/ProjectFiles.swc"
               >
			<load-config filename="${ROYALE_HOME}/frameworks/flex-config.xml"/>
            <jvmarg value="-Xmx1024m" />   <!-- Xmx384m -->
            <jvmarg value="-Dsun.io.useCanonCaches=false" />
            <jvmarg value="-Droyalelib=${ROYALE_HOME}/frameworks" />
            <arg value="+royalelib=${ROYALE_HOME}/frameworks" />
            <source-path path-element="${basedir}" />
            
			<include-sources dir="org\" includes="*"/>
			<include-sources dir="com\dbz\utils\" includes="*"/>
			<include-sources dir="com\dbz\components\" includes="*"/>
			<include-sources dir="com\dbz\modules\" includes="*"/>
			<include-sources dir="com\dbz\reports\" includes="*" />
			<include-sources dir="com\dbz\VO\" includes="*"/>
			
         
		   <external-library-path dir="${ROYALE_HOME}/frameworks/libs" append="true" >
                <include name="MXRoyale.swc" />
                <include name="SparkRoyale.swc" />
                <include name="Basic.swc" />
                <include name="Core.swc" />
                <include name="Binding.swc" />
				<include name="Reflection.swc" />
				<include name="Text.swc" />
            </external-library-path>
			<external-library-path dir="${ROYALE_DRIVE}DBIZCOMLIB\src\target" append="true" >
                <include name="DbizLib.swc" />
            </external-library-path>
			<js-external-library-path dir="${ROYALE_DRIVE}DBIZCOMLIB\src\target" append="true" >
                <include name="DbizLib.swc" />
            </js-external-library-path>
        </compc>
    </target>
</project>
Make a new paste