ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <>
Subject Re: How to get command line?
Date Tue, 05 Jun 2001 02:45:46 GMT
At 12:30 PM 6/4/01 -0700, Jeff Post wrote:
>Hello all,
>I am reusing some of the information and functionality in my build files to
>simplify common developer tasks. 
>I have a special target that I can use in development for checking out files
>in clearcase. This target uses custom tasks to do the checkout ( they are
>derived from the ClearCase class ).
>What I need to find out is how to get the command line that launched Ant.
>For example: If I type "ant -checkoutproject -comment someComment..", where
>-checkoutproject is the target, how can I access the remaining parameters
>from my custom tasks??

if you did it like

ant -checkoutproject -Dmy.comment="someComment.."

then you could just get value of ${my.comment}



| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |

View raw message