That's fine Jan...
 The issue is that I have to have it running on cruisecontrol with app. 50 
other projects.
 Hence, changing the ANT_OPTS is for instance doable but I have to call ANT 
from my main ANT-file or I have to ask for changes to the guy in charge to 
change some options.. and bottom line I don't (really) like the options
 
 \T,
 
--  
 Any fool can write code that a computer can understand.  
 Good programmers write code that humans can understand.                        
                            
 Martin Fowler  
 T. : +32 (0)2 742 05 94 
 M. : +32 (0)497 44 68 12 
 @  : [EMAIL PROTECTED] 
 Do you skype too ... ?

----- Original Message ----
From: [EMAIL PROTECTED]
To: user@ant.apache.org
Sent: Friday, December 23, 2005 12:39:48
Subject: AW: AW: JDepend task

Reading the ant.bat you´ll find some extension points:
- using ant_[pre|post].bat
  Do what you want .... on windows ...
- env variable ANT_OPTS
  java settings
- env variable ANT_ARGS 
  ant settings, e.g. "-lib path/to/my/additional/libs


Jan


ant.bat
---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<----
@echo off
...
if exist "%HOME%\antrc_pre.bat" call "%HOME%\antrc_pre.bat"
...
"%_JAVACMD%" 
\    %ANT_OPTS% 
\    -classpath 
\        "%ANT_HOME%\lib\ant-launcher.jar" 
\    "-Dant.home=%ANT_HOME%" 
\    org.apache.tools.ant.launch.Launcher 
\    %ANT_ARGS% 
\    %ANT_CMD_LINE_ARGS%


...
if exist "%HOME%\antrc_post.bat" call "%HOME%\antrc_post.bat"
---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<----



>-----Ursprüngliche Nachricht-----
>Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
>Gesendet: Freitag, 23. Dezember 2005 12:30
>An: Ant Users List
>Betreff: Re: AW: JDepend task
>
>yes but
>  _ In cruisecontrol it is run as a Service --> 
>${user.home}/.ant/lib is not a viable option
>  _  -lib could be usable ... I have to check  the easiest 
>would be to be able to set up a classpath, thought.
> The funny thing is that it is for me easier to add my own 
>task than calling the Optionnal task...
> 
> \T,
>  
>--  Any fool can write code that a computer can understand.  
>Good programmers write code that humans can understand.        
>                                            Martin Fowler  T. 
>: +32 (0)2 742 05 94 M. : +32 (0)497 44 68 12 @  : 
>[EMAIL PROTECTED] Do you skype too ... ?
>
>----- Original Message ----
>From: [EMAIL PROTECTED]
>To: user@ant.apache.org
>Sent: Friday, December 23, 2005 12:02:38
>Subject: AW: JDepend task
>
>${user.home}/.ant/lib
>or provide the location via -lib option
>
>Jan 
>
>>-----Ursprüngliche Nachricht-----
>>Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>>Gesendet: Freitag, 23. Dezember 2005 11:15
>>An: Ant Users
>>Betreff: JDepend task
>>
>>
>> I have the recurrent problem with Cruisecontrol.
>> The admins have block the addition of any file (jars) to the 
>>${ANT_HOME}/lib directory  I do not know how I can add JDepend to my 
>>classpath ... ?
>> <snip>
>>  - The task needs an external JAR file to execute
>>      and this is not found at the right place in the classpath.
>> </snip>
>> Typically, I dunno how I can tell ANT that it should add a 
>few  jar to 
>>its run CLASSPATH  without doing so by adding the jar to the 
>>${ANT_HOME}/lib
>> 
>> \T,
>> 
>> 
>>--
>> Any fool can write code that a computer can understand.  
>> Good programmers write code that humans can understand.       
>>                                             
>> Martin Fowler
>> T. : +32 (0)2 742 05 94
>> M. : +32 (0)497 44 68 12
>> @  : [EMAIL PROTECTED]
>> Do you skype too ... ?
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED] For 
>additional 
>>commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED] For 
>additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED] For 
>additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to