ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Kesch" <ke...@swt.ruhr-uni-bochum.de>
Subject AW: private Target
Date Mon, 11 Feb 2002 13:51:37 GMT
I use a target namend help but forte displays all targets that are included
in the build.xml file ... that's the only reason .... when you call 'ant'
you get a list of allowed parameters ...

Peter

-----Urspr√ľngliche Nachricht-----
Von: Peterson, Brian [mailto:Brian.Peterson@westgroup.com]
Gesendet: Montag, 11. Februar 2002 14:34
An: 'Ant Users List'
Betreff: RE: private Target


I don't believe there is a way to avoid the "private" targets from being
called; I use the convention that private targets, and properties, are all
upper case.  I also only display the targets I intend to be callable by the
user in a "usage" target, which is the default target.

brian peterson


| -----Original Message-----
| From: Peter Kesch [mailto:kesch@swt.ruhr-uni-bochum.de]
| Sent: Monday, February 11, 2002 1:44 AM
| To: Ant Users List
| Subject: AW: private Target
|
|
| That isn't what im searching for ...
| for example i have a target
| <target name="copylocalxml">
| <antcall target="copylocalwin" />
| <antcall target="copylocallin"/ >
| </target>
|
| <target name="copylocalwin" if="windows">
| <copy tofile="...../web.xml"
| dest="${basedir}/web-inf/web.xml.local" />
| </target>
|
| <target name="copylocallin" if="linux">
| <copy tofile="...../web.xml" dest="${basedir}/web-inf/web.xml" />
| </target>
|
| now i want to avoid calling copylocalwin.or copylocallin from the
| commandline ...
| and i think the depends argument doesnt helps ....
| until copy doesn't supports the if argument i see no other
| way to solve the
| problem of copying different files, depending on os type ...
|
| bu how do i avoid the possibility of calling these targets ...
|
| regards
|
| Peter
|
| -----Urspr√ľngliche Nachricht-----
| Von: Srinivas Velidanda [mailto:srinivasv@spark5.com]
| Gesendet: Montag, 11. Februar 2002 08:17
| An: Ant Users List
| Betreff: RE: private Target
| Wichtigkeit: Hoch
|
|
| Hi,
| you can make a target to be executed depending on another by
| specifying the
| depends attribute in the build script for the target element,
| i haven't
| actually worked with forte, but to make the target depend on
| some other i
| have done the same thing.
|
|   <target name="" depends="here give another target name
| which this target
| should depend on">
| </target>
|
| Srinivas.
|
| -----Original Message-----
| From: Peter Kesch [mailto:kesch@swt.ruhr-uni-bochum.de]
| Sent: Monday, February 11, 2002 12:44 PM
| To: ant-user@jakarta.apache.org
| Subject: private Target
|
|
| Hi ...
|
| we use an Ant buildscript with forte4Java and now i need a
| hint. forte shows
| ma all target, also these i need to check if it is running on
| a windows or
| linux system. because of missing if statement in some tasks i
| have to use 2
| targets which do the same but with different files on windows
| or linux.
|
| And now i need to know if there is any way to make targets
| private, so they
| can only be called by another target.
|
| by the way ... the condition task isn't supported by
| forte4java because of
| an old ant.jar file in <fortehome>/modules/ext/. if you copy
| the one from
| ant-1.4.1 in this dir, it works fine ....
|
| regards
|
| peter
|
|
| --
| To unsubscribe, e-mail:
<mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>







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


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

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


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


Mime
View raw message