Hi Rickard,

I am the one who's deteriorated this, so I feel guilty of not having 
explained this further. If you disagree with me, heck, stuff it back 
in! ;-)

----- Original Message -----
From: Rickard <[EMAIL PROTECTED]>
Date: Monday, June 10, 2002 11:12 am
Subject: [Xdoclet-devel] Self sufficiency

> Hey
> 
> Now that it seems XDoclet merging has quieted down I thought I'd 
> give it 
> a shot. But now I see that it is no longer a self-sufficient 
> project: 
> Ant needs to be installed separately. Why is this? What was wrong 
> with 
> including ant and the batch files to run it? Also, it seems that 

The problem with this approach is that it opens for the possibility to 
configure classpaths and paths in our own bat/sh scripts (system 
classpath). This means that if you try to run the Ant scripts from 
whithin an IDE (which does not invoke Ant via the bat/sh script and 
therefore might have a different system classpath), then the build 
might fail. Doing without a custom bat/sh script means that the 
classpaths have to be more carefully handled in the build.xml scripts, 
but they will be more "portable". If we base our build on Ant's 
standard batch scripts, we reduce the risk of things not working in 
different environments.

A second reason is to minimise the size of the distro. It is a common 
practice for many projects not to be "self sufficient", but to require 
the download of other packages separately. It's like bundling JDK with 
your application: Some do it others don't. IMHO both JDK and Ant are 
common enough so you'd expect people to have them installed already. Of 
course, we need to document this clearly (especially when the version 
we require is new and beta). I've added a TODO for that:

https://sourceforge.net/tracker/index.php?group_id=31602&atid=466371
(Please use this TODO list more folks)

3 steps are therefore required:
1) download and unpack Ant 1.5+
2) SET ANT_HOME=C:\jakarta-ant-1.5Beta1
3) SET PATH=%ANT_HOME%\bin;%PATH%

(or equivalent on unix)

> one has 
> to set ant.home now. Is this correct? Is this documented somewhere?

Currently not documented, only in mailing lists and the FAQ.

If you invoke the standard ant.bat/sh/pl/py from the path above, 
ant.home will be set for you (based on your ANT_HOME environment 
variable).

> 
> /Rickard
> 
> -- 
> Rickard Öberg
> 
> 

Aslak

> _______________________________________________________________
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - http://devcon.sprintpcs.co
> 
> _______________________________________________
> Xdoclet-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
>


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to