This week's book giveaway is in the Java in General forum.
We're giving away four copies of Java by Comparison (eBook) and have Simon Harrer, Jörg Lenhard, Linus Dietz on-line!
See this thread for details.
Win a copy of Java by Comparison (eBook) this week in the Java in General forum!

Righteous Raven

Greenhorn
+ Follow
since Apr 24, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Righteous Raven

hmmm... I guess this means I'll be writing my own class... <sigh>
Thanks,
RighteousRaven
14 years ago
what i meant by main calling init and init calling main is that properties are passed from project to sub-project.. so main must be a sub-project of init. However, it doesnt make sense to be calling the sub-project in order to call the project.. so init must also be a sub-project of main...
so the solution would be to have the default target in main call the subproject, and then once the sub-project is finished executing, it calls a different target in main which continues through the execution of the project.
-RighteousRaven
14 years ago
hey,
Sorry about asking two questions.. i hate it when people do that eheh.
Anyway, i want to have a separate build file for all of my initializations, and I cant seem to find a task that will do that for me.
LoadProperties doesnt work (i dont think), because i want to set up patternsets with refid's in the init file.
And since the Ant task doesnt let properties in the sub-project be available in the main-project, the only way it will work is if i have main call init, and then init call main... but thats ugly and unintuitive.
So... anyone know of another way?
Thanks,
RighteousRaven
14 years ago
hey,
I need to unzip a whole bunch of jars which are contained within a directory tree, but I want to preserve the location of the jars, as well as the structure of the files within the jars.
For example, say i have 2 jars:
/a/b/first.jar and
/a/c/second.jar
now i want to unzip them such that the contents of first.jar end up in /a/b/ while the contents of second.jar end up in /a/c/. (note that 2 separate zip commands doesnt work, cause in reality i have 100 jars)
The command:
<unzip>
<fileset dir="/a" />
</unzip>
doesnt work because it would extract the contents of both first.jar and second.jar to the /a/ directory.
One solution is to have a class that recursively searches through the directory tree and executes its body on every dir that matches a patternset.. but i dont know if that exists or not.
Any suggestions?
THANKS!!
-RighteousRaven
14 years ago