Ant Build rebuilding whole workspace [message #1221576] |
Tue, 17 December 2013 20:53  |
Eclipse User |
|
|
|
I use eclipse for 3 basic tasks - Java development, c++ development and Jasper Reports. I am running keppler on ubuntu 13.10. I have two working sets, one for Java projects and one for C++ projects. I have about a dozen or so of each. For two of my Java projects I have jasper reports. I use an ant script to build the reports. However when I run the ant script it insists on trying to first build all my c++ projects. How can I prevent this?
<project name="Project Reports" default="compile" basedir=".">
<description>Previews and compiles our First Report</description>
<property name="file.name" value="test" />
<!-- Directory where the JasperReports project file was extracted, needs to be changed to match the local environment -->
<property name="jasper.dir" value="/home/peter/workspace/libs/jasper" />
<property name="classes.dir" value="${jasper.dir}/build/classes" />
<property name="lib.dir" value="${jasper.dir}/lib" />
<path id="classpath">
<pathelement location="./" />
<pathelement location="${classes.dir}" />
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
</path>
<target name="compile" description="Compiles the XML report design and produces the .jasper file.">
<taskdef name="jrc" classname="net.sf.jasperreports.ant.JRAntCompileTask">
<classpath refid="classpath" />
</taskdef>
<jrc destdir=".">
<src>
<fileset dir=".">
<include name="**/*.jrxml" />
</fileset>
</src>
<classpath refid="classpath" />
</jrc>
<copy toDir="../src/reports">
<fileset dir="." includes="*.jasper" />
</copy>
<copy toDir="../bin/reports">
<fileset dir="." includes="*.jasper" />
</copy>
</target>
</project>
Peter
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.12605 seconds