You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Vikas Phonsa <VP...@suz.com> on 2003/10/01 20:11:18 UTC

RE: Directory names

Jan,

Your explanation for the topic of "Evaluating properties based on other
properties" on jguru was awesome. 

Now I finally understand the <foreach> and <propertycopy> tasks.


Thanks of ur help.

Vikas

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
Sent: Tuesday, September 30, 2003 9:24 AM
To: user@ant.apache.org
Subject: RE: Directory names

I wouldn´t do a loop and several if´s.
I would try that:

- let the project create their javadoc in their own directory (common name
  e.g. apidoc):
  Projects/devSystem/Project1/apidoc
- do the creation with a unified target
  <target name="javadoc"/>
- write that target in an external file
  Projects/javadoc.xml
- include that in the several buildfiles
  - <import file="../../javadoc.xml"/>
  - XML entity include
- write a global buildfile
  Projects/build.xml
  - iterates over all sub-buildfiles
    <subant>
  - copy all apidoc directories
    <copy>, <fileset>, <mapper>


<subant> and <import> are part of Ant 1.6 (beta available at 
http://cvs.apache.org/dist/ant/v1.6beta1/ )


Jan


> -----Original Message-----
> From: Vikas Phonsa [mailto:VPhonsa@suz.com]
> Sent: Tuesday, September 30, 2003 6:15 PM
> To: 'Ant Users List'
> Subject: RE: Directory names
> 
> 
> Jan,
> Thanks a lot, this works. I wanted to somehow use your answer for my
> original problem. Pls take a look at this and I would appreciate any
> suggestions:
> 
> I'm trying to make an ant script that would scan several 
> different Project
> folders, generate javadocs and place the docs in different destination
> folders for each project based on the name and director 
> structure of the
> project. I am able to generate docs if all projects and docs 
> were under one
> folder. But the scr and destination folders are supposed to be under
> different directory structures like this:
> 
> Src: Projects/devSystem/Project1
>      Projects/devBR/Project2
> 
> Destination: Javadoc/devSystem/Project1
> 		 Javadoc/devBR/Project2
> 
> I know if-else task exists in ant-contrib. But can I 
> implement some if-else
> functionality to do a selection based on directory structure 
> or names so
> that the docs go to the appropriate folders.
> 
> Thanks
> 
> Vikas
> 
> 
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
> Sent: Monday, September 29, 2003 11:21 PM
> To: user@ant.apache.org
> Subject: RE: Directory names
> 
> Does
> 
> <project>
>     <dirset id="fs" dir="." includes="*"/>
>     <pathconvert property="fs.value" refid="fs"
> pathsep="${line.separator}"/>
>     <echo>${fs.value}</echo>
> </project>
> 
> 
> help?
> 
> 
> Jan
> 
> > -----Original Message-----
> > From: Vikas Phonsa [mailto:VPhonsa@suz.com]
> > Sent: Monday, September 29, 2003 10:18 PM
> > To: 'Ant Users List'
> > Subject: Directory names
> > 
> > 
> > Is there any way ant could be used to get a list of names of 
> > directories
> > under a base directory.
> > I have checked out basename and dirname but it seems they 
> > won't serve the
> > purpose.
> > 
> > Thanks
> > vikas
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > 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