Jump to content
Changes to the Jaspersoft community edition download ×

Why my ant task for jasper report does work?


2005 IR Help

Recommended Posts

By: Dennis - dogcat

Why my ant task for jasper report does work?

2004-09-15 12:48

Hi Group,

 

I want to compile a bunch of xml files to .jasper.

 

According to the instruction of jasper, I created the following one in my build.xml.

 

But it seems the task has never been executed.

 

No error, no message,

 

Would you please help me?

 

----------------------------------------

<taskdef name="jrc" classname="dori.jasper.ant.JRAntCompileTask">

<classpath>

<pathelement location="${ThirdParty.home}"/>

<fileset dir="${ThirdParty.home}">

<include name="**/*.jar"/>

</fileset>

</classpath>

</taskdef>

 

<!-- Complie jasper reports -->

<target name="reportCompile">

<jrc srcdir="${src.reports.dir}" destdir="${dest.reports.dir}" keepjava="false" xmlvalidation="true">

<classpath>

<pathelement location="${ThirdParty.home}"/>

<fileset dir="${ThirdParty.home}">

<include name="**/*.jar"/>

</fileset>

</classpath>

</jrc>

</target>

 

 

 

 

By: odc - sameena

RE: Why my ant task for jasper report does work?

2004-10-20 22:17

i think it is bcoz as u said the task is never called set the project root tag as follows

<project name="JasperReports" default="reportCompile" .../>

 

and then in the target tag of ur reportCompile give

 

<target name="reportCompile" depends="javac">

 

here javac is the task name that compiles ur source files for jreports

 

hope i answered ur question

bye

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...