ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Mark Bram <relaxed...@optusnet.com.au>
Subject Access project.classpath from a Task
Date Thu, 01 Jul 2004 12:58:20 GMT
Hi All!

I need to set a classpath in my custom task definition. I also need this 
classpath within the Java Task itself.

Is there a way to programmatically access project.classpath from within 
Java? I tried looking in the Project class but nothing obvious strikes 
me..

<project name="OwnTaskExample" default="main" basedir=".">
    <taskdef
       name="JavaConsole"
       classname="common.ant.JavaConsoleTask"
       classpath="lib/common.jar"/>

    <target name="main">
       <JavaConsole
          title="Testing Console"
          inputRequired="true"
          executable="java" />
    </target>
</project>

Any help would be most appreciated!

Rob
:)

-- 
Robert Mark Bram
B.Comp.(Systems Development/Business Systems)
B.Net.Comp.(Hons)
Doctor of Philosophy Student

School of Network Computing
Faculty of Information Technology
Monash University
Peninsula Campus
McMahons Rd
Frankston, VIC 3199
AUSTRALIA

Phone:  61 3 9904 4394
Facsimile:  61 3 9904 4124
Email: robert.mark.bram@infotech.monash.edu.au


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


Mime
View raw message