Apache Ant - Select All Symlinks?

Please take a look at : ant.apache.org/manual/Tasks/symlink.html I don't have a linux machine to test now but I guess that with the something like this : You should be able to record your symlinks into a file and then processing the files as you wish. For example you could then create a list only with the "symlinked" files and iterate over it to do what you want. EDIT : For this solution you will need to install the ant-contrib.

Just unpack the ant-contrib-1.0b3. Jar to your ant/lib directory. Then use the following build.

Xml file : The trick is the linux command which returns all the targeted files from the symlinks. Then you just iterate through them with the foreach task and you call a target in which you can do whatever you need with the files.

What I really need is a of all the symbolic links in a folder so I can iterate over them in another Ant task. I'm not very experienced with Ant - could I read the file back into a? – Matt Clarkson Oct 5 at 15:26 So I assume that you would like to iterate through all "/home/user/build/folder/file-0.0.3" right?

What are you planning to call for each file? I mean which task? Exec for example or something more specific?

– FailedDev Oct 5 at 15:48 Do you only need the symlinks or everything? – FailedDev Oct 5 at 16:07 For a given folder. Resolve all symlinks to a .

Perform task on . Ignore all other files. – Matt Clarkson Oct 5 at 16:29 So for the example in the question the would just contain folder/file-0.0.3 – Matt Clarkson Oct 5 at 16:29.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions