ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bender, Christopher" <Christopher.Ben...@tdsecurities.com>
Subject RE: Greeting and task development question
Date Thu, 02 Oct 2003 18:03:58 GMT
I could do it that way I suppose but I would really like to do it as a task as it makes the
build file much more elegant to read and will allow others to change it easier.

I would rather have
<taskdef name="theTask" {something goes in here???}>	
<theTask arg1="banana" />

over

<java jar="${jarpath}/jarContainingTask.jar" fork="true" failonerror="true"
maxmemory="128m">
			<arg arg1="banana" />
</java>


-----Original Message-----
From: Vikas Phonsa [mailto:VPhonsa@suz.com]
Sent: Thursday, October 02, 2003 1:55 PM
To: 'Ant Users List'
Subject: RE: Greeting and task development question


Do u just want to run the jar ? I'm am not sure I understand your point
exactly cause I'm also kinda newbie but you can run classes from a jar using
the following task.


<java jar="${jarpath}/jarname.jar" fork="true" failonerror="true"
maxmemory="128m">
			<arg value="${arg}" />
</java>



Vikas

-----Original Message-----
From: Bender, Christopher [mailto:Christopher.Bender@tdsecurities.com] 
Sent: Thursday, October 02, 2003 10:51 AM
To: user@ant.apache.org
Subject: Greeting and task development question

Hey everyone!

Im new to this list and am a little unsure of how things work but Im sure
Ill catch on soon enough.

My first question is regarding the writing of my own tasks.  I have been
able to write a simple task and get it to run using the information found in
the ant manual.  Unfortunate, I need to run more complex tasks that have
been zipped into a jar file.  I have the manifest for the jar pointing to
the class I want to run, and now I am wondering if there is anyway I can get
ant to run this jar?

Thanks a lot,
Chris

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message