Niclas Hedhman wrote:
In that case, it should be useful for you to know the preferred way of building Avalon as well.Thanks, I had got this much figured out. That helpful README.txt in the root does
You need to go to the Avalon root, and run ant setup
This creates the Magic extension to Ant.
After that you can issue 'ant' in any directory and it will build the system below in the correct order.
Meaning if you build from the root, everything gets built (takes 4-10min dep on machine), but you can step into "runtime" or in this case "runtime/logkit" and run ant from there.
The outputs both goes to the "target" directory in each place, as well as $HOME/.magic/main (organized as Maven repo).
Holler if you run into trouble, as Magic is not 100% reliable on all platforms yet.
wonders :-) The whole thing built on the first time through without any problems.
Great job!!!
I'll have to poke around and see what all Magic is capable of doing, but the first
impression is quite positive.
One question that I have right off the bat however. Over in Excalibur, we are of course
using Maven to do our builds. In the current case with Logkit, out builds look for the
jar in the {home}/.maven directory. Is there a way to tell Magic to put its targets into
the maven local repository?
I thought that I could maybe do this by setting Magic to use the Maven repository, but
their directory hierarchies are a bit different. It looks like the files that Magic downloads
use the same structure, but the avalon targets are all placed into an avalon subdirectory
within the repository.
Taking the Logkit jar as an example. Magic places it in: .magic/main/avalon/logkit/jars/avalon-logkit-2.0.0.jar Where Maven uses: .maven/repository/avalon-logkit/jars/avalon-logkit-2.0.0.jar
For now, I will go ahead and copy it by hand.
How are you planning on uploading Avalon targets to sites like Ibiblio? Currently, the logkit jar can be found in http://www.ibiblio.org/maven/avalon/jars/avalon-logkit-1.2.2.jar and http://www.ibiblio.org/maven/avalon-logkit/jars/avalon-logkit-2.0.0.jar
Personally, I like the first option as it keeps the number of root directories to a minimum.
But the trend seems to be to use the second. It doesn't appear that there are really
and standards on how it should be done however.
Cheers, Leif
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]