core-jgi/JasperReportsWebApp/build.xml

60 lines
1.9 KiB
XML
Raw Normal View History

2007-01-21 00:50:29 +07:00
<!-- ============================================= -->
<!-- webApp -->
<!-- ============================================= -->
<project name="webApp" default="main" basedir=".">
<description>
Build the UI subproject within the Compiere project.
</description>
<!-- set global properties for this build -->
<property name="src" value="src"/>
<property name="build.dir" value="build"/>
<property name="dist.dir" value="."/>
<!--<property environment="env"/>-->
<import file="../utils_dev/properties.xml"/>
2007-01-21 00:50:29 +07:00
<!-- set path to include the necessary jar files for javac -->
<path id="project.class.path">
<pathelement path="${classpath}"/>
<fileset dir="../jboss/client" includes="*.jar"/>
2007-01-21 00:50:29 +07:00
<pathelement location="../JasperReports/CompiereJasper.jar" />
<pathelement location="../base/Base.jar" />
2007-01-21 00:50:29 +07:00
</path>
<target name="compile">
<echo>------ Compiling webApp</echo>
<mkdir dir="${build.dir}"/>
<javac target="1.5" srcdir="${src}" destdir="${build.dir}" deprecation="on" debug="on">
2007-01-21 00:50:29 +07:00
<classpath refid="project.class.path"/>
</javac>
</target>
<target name="packaging">
<echo>------ packaging</echo>
<ant inheritall="false" antfile="packaging-build.xml"/>
</target>
<target name="deploy-interface">
<echo>------ deploying interfaces to JasperReports</echo>
<copy todir="../JasperReports/src">
<fileset dir="src" includes="org/compiere/interfaces/*.java"/>
</copy>
</target>
<target name="clean">
<delete dir="${build.dir}"/>
<delete file="webApp.war" failonerror="false"/>
<delete file="webApp.ear" failonerror="false"/>
<delete file="webAppEJB.jar" failonerror="false"/>
<delete file="webEJB-client.jar" failonerror="false"/>
</target>
<target name="main" depends="compile, packaging, deploy-interface" description="initialization target">
2007-01-21 00:50:29 +07:00
</target>
</project>