Skip to main content



      Home
Home » Newcomers » Newcomers » Ant Build rebuilding whole workspace
Ant Build rebuilding whole workspace [message #1221576] Tue, 17 December 2013 20:53 Go to next message
Eclipse UserFriend
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
Re: Ant Build rebuilding whole workspace [message #1221659 is a reply to message #1221576] Wed, 18 December 2013 02:13 Go to previous messageGo to next message
Eclipse UserFriend
How are you invoking this ant script?

On 12/17/2013 06:53 PM, Peter Carlson wrote:
> 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
[Solved] Ant Build rebuilding whole workspace [message #1221865 is a reply to message #1221659] Wed, 18 December 2013 10:22 Go to previous message
Eclipse UserFriend
right click - run as - ant build

That put me in the right direction. External Tools Configuration, Build Tab has the options I needed to prevent an entire workspace re-build.

Peter
Previous Topic:RCP Projects
Next Topic:jetty
Goto Forum:
  


Current Time: Tue Jun 24 12:08:33 EDT 2025

Powered by FUDForum. Page generated in 0.12605 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top