Exit netbeans.
Move ant*.jar from $NB_HOME/modules/ext
to a safe backup location.
Copy the the jars from $ANT_HOME/lib
into $NB_HOME/lib/ext.
Start netbeans.
Larry
>>> dave@oxygensoft.com 07/29/02 12:09 PM >>>
Has anybody succeeded in upgrading netbeans
from ant 1.4.1 to ant 1.5? Do you know when
netbeans intends to support ant 1.5?
Thanks,
Dave
Larry Meadors wrote:
> Exit netbeans.
>
> Move ant*.jar from $NB_HOME/modules/ext
> to a safe backup location.
>
> Copy the the jars from $ANT_HOME/lib
> into $NB_HOME/lib/ext.
Uh, last step should better be to copy them into the file paths used by
the original ant*.jar. Avoid using lib/ext/.
http://ant.netbeans.org/faq.html
-Jesse
--
Jesse Glick <mailto:jesse.glick@sun.com> x22801
NetBeans, Open APIs <http://www.netbeans.org/>
Dave Smith wrote:
> Has anybody succeeded in upgrading netbeans from ant 1.4.1 to ant 1.5?
Easy though not all features (e.g. input prompters) are yet integrated.
> Do
> you know when netbeans intends to support ant 1.5?
Soon after 3.4 release, probably, so check Auto Update:
http://ant.netbeans.org/issues/show_bug.cgi?id=23076
-Jesse
--
Jesse Glick <mailto:jesse.glick@sun.com> x22801
NetBeans, Open APIs <http://www.netbeans.org/>
Thanks for the advice. I'm having some problems when I follow your
instructions. During startup, Forte (I'm using forte 4 and not netbeans,
although I can switch if it will make any difference) displays the following
error dialog: "Could not install module Ant - The package containing class
org.apache.tools.ant.Location was not loaded". The class it complains about
is in the new v1.5 ant.jar in $FORTE_HOME/modules/ext. Do you know how I can
help Forte find what it needs in the new jar files?
Thanks,
Dave
--Original Message--
From: Larry Meadors [mailto:Larry.Meadors@plumcreek.com]
Sent: Monday, July 29, 2002 1:24 PM
To: nbusers@netbeans.org
Subject: Re: Upgrade to Ant 1.5
Exit netbeans.
Move ant*.jar from $NB_HOME/modules/ext
to a safe backup location.
Copy the the jars from $ANT_HOME/lib
into $NB_HOME/lib/ext.
Start netbeans.
Larry
>>> dave@oxygensoft.com 07/29/02 12:09 PM >>>
Has anybody succeeded in upgrading netbeans
from ant 1.4.1 to ant 1.5? Do you know when
netbeans intends to support ant 1.5?
Thanks,
Dave
Some more investigation results... There is a file,
$FORTE_HOME/update_tracking.xml, that contains some information regarding
the ant module. Do I need to alter the contents of this file to register the
new ant jars?
Thanks, Dave
*** ./update_tracking.xml ***
<module codename="org.apache.tools.ant.module/2">
<file name="modules/ant.jar" crc="2199958706" />
<file name="modules/locale/ant_ja.jar" crc="628548826" />
<file name="modules/patches/org-apache-tools-ant-module/README.txt"
crc="3482245020" />
<file name="modules/ext/ant-optional-1.4.1.jar" crc="2302443656" />
<file name="modules/ext/ant-1.4.1.jar" crc="3357345529" />
<file name="modules/docs/ant-manual.zip" crc="2879463544" />
<file name="docs/ant-api.zip" crc="3286935655" />
<file name="system/ParserDB/ant141.jcb" crc="1730361650" />
<file name="system/ParserDB/ant141.jcs" crc="1107932937" />
--Original Message--
From: Dave Smith
Sent: Friday, August 02, 2002 3:55 PM
To: nbusers@netbeans.org; jesse.glick@sun.com;
Larry.Meadors@plumcreek.com
Subject: RE: Upgrade to Ant 1.5
Thanks for the advice. I'm having some problems when I follow your
instructions. During startup, Forte (I'm using forte 4 and not netbeans,
although I can switch if it will make any difference) displays the following
error dialog: "Could not install module Ant - The package containing class
org.apache.tools.ant.Location was not loaded". The class it complains about
is in the new v1.5 ant.jar in $FORTE_HOME/modules/ext. Do you know how I can
help Forte find what it needs in the new jar files?
Thanks,
Dave
--Original Message--
From: Larry Meadors [mailto:Larry.Meadors@plumcreek.com]
Sent: Monday, July 29, 2002 1:24 PM
To: nbusers@netbeans.org
Subject: Re: [nbusers] Upgrade to Ant 1.5
Exit netbeans.
Move ant*.jar from $NB_HOME/modules/ext
to a safe backup location.
Copy the the jars from $ANT_HOME/lib
into $NB_HOME/lib/ext.
Start netbeans.
Larry
>>> dave@oxygensoft.com 07/29/02 12:09 PM >>>
Has anybody succeeded in upgrading netbeans
from ant 1.4.1 to ant 1.5? Do you know when
netbeans intends to support ant 1.5?
Thanks,
Dave
I put the new ant jar files in $NBHOME/lib/ext,
instead of $NBHOME/moudules/ext.
There is likely a more elegant way to do this,
but it worked for me. ;-)
Larry
====
Thanks for the advice. I'm having some problems
when I follow your instructions. During startup,
Forte (I'm using forte 4 and not netbeans,
although I can switch if it will make any
difference) displays the following error dialog:
"Could not install module Ant - The package
containing class org.apache.tools.ant.Location
was not loaded". The class it complains about
is in the new v1.5 ant.jar in
$FORTE_HOME/modules/ext. Do you know how I can
help Forte find what it needs in the new jar
files?
Thanks,
Dave
--Original Message--
From: Larry Meadors [mailto:Larry.Meadors@plumcreek.com]
Sent: Monday, July 29, 2002 1:24 PM
To: nbusers@netbeans.org
Subject: Re: Upgrade to Ant 1.5
Exit netbeans.
Move ant*.jar from $NB_HOME/modules/ext
to a safe backup location.
Copy the the jars from $ANT_HOME/lib
into $NB_HOME/lib/ext.
Start netbeans.
Larry
>>> dave@oxygensoft.com 07/29/02 12:09 PM >>>
Has anybody succeeded in upgrading netbeans
from ant 1.4.1 to ant 1.5? Do you know when
netbeans intends to support ant 1.5?
Thanks,
Dave
Ok, but if you but them in lib/ext instead of modules/ext how do we know
that Ant 1.5 is actually
being invoked when you try to use the ant functionality?I also tried to
do some replacement of the
jars and it started screaming at me about the ant documentation.I'll try
the lib/ext replacement
next but it just seams like the integration module will still run 1.4 ?
--Original Message--
From: Larry Meadors [mailto:Larry.Meadors@plumcreek.com]
Sent: Saturday, August 03, 2002 6:21 AM
To: nbusers@netbeans.org
Subject: RE: Upgrade to Ant 1.5
I put the new ant jar files in $NBHOME/lib/ext,
instead of $NBHOME/moudules/ext.
There is likely a more elegant way to do this,
but it worked for me. ;-)
Larry
====
Thanks for the advice. I'm having some problems
when I follow your instructions. During startup,
Forte (I'm using forte 4 and not netbeans,
although I can switch if it will make any
difference) displays the following error dialog:
"Could not install module Ant - The package
containing class org.apache.tools.ant.Location
was not loaded". The class it complains about
is in the new v1.5 ant.jar in
$FORTE_HOME/modules/ext. Do you know how I can
help Forte find what it needs in the new jar
files?
Thanks,
Dave
--Original Message--
From: Larry Meadors [mailto:Larry.Meadors@plumcreek.com]
Sent: Monday, July 29, 2002 1:24 PM
To: nbusers@netbeans.org
Subject: Re: [nbusers] Upgrade to Ant 1.5
Exit netbeans.
Move ant*.jar from $NB_HOME/modules/ext
to a safe backup location.
Copy the the jars from $ANT_HOME/lib
into $NB_HOME/lib/ext.
Start netbeans.
Larry
>>> dave@oxygensoft.com 07/29/02 12:09 PM >>>
Has anybody succeeded in upgrading netbeans
from ant 1.4.1 to ant 1.5? Do you know when
netbeans intends to support ant 1.5?
Thanks,
Dave
The exception you were seeing is netbeans
getting all jacked-up about not being able
to find the ant 1.4 classes. If it can find
the 1.5 classes, it will happily use them
instead of the 1.4 classes.
Larry
>>> andy@riftware.com 08/03/02 15:11 PM >>>
Ok, but if you but them in lib/ext instead of
modules/ext how do we know that Ant 1.5 is
actually being invoked when you try to use
the ant functionality?I also tried to
do some replacement of the jars and it started
screaming at me about the ant documentation.
I'll try the lib/ext replacement next but it
just seams like the integration module will
still run 1.4 ?
--Original Message--
From: Larry Meadors [mailto:Larry.Meadors@plumcreek.com]
Sent: Saturday, August 03, 2002 6:21 AM
To: nbusers@netbeans.org
Subject: RE: Upgrade to Ant 1.5
I put the new ant jar files in $NBHOME/lib/ext,
instead of $NBHOME/moudules/ext.
There is likely a more elegant way to do this,
but it worked for me. ;-)
Larry
====
Thanks for the advice. I'm having some problems
when I follow your instructions. During startup,
Forte (I'm using forte 4 and not netbeans,
although I can switch if it will make any
difference) displays the following error dialog:
"Could not install module Ant - The package
containing class org.apache.tools.ant.Location
was not loaded". The class it complains about
is in the new v1.5 ant.jar in
$FORTE_HOME/modules/ext. Do you know how I can
help Forte find what it needs in the new jar
files?
Thanks,
Dave
--Original Message--
From: Larry Meadors [mailto:Larry.Meadors@plumcreek.com]
Sent: Monday, July 29, 2002 1:24 PM
To: nbusers@netbeans.org
Subject: Re: [nbusers] Upgrade to Ant 1.5
Exit netbeans.
Move ant*.jar from $NB_HOME/modules/ext
to a safe backup location.
Copy the the jars from $ANT_HOME/lib
into $NB_HOME/lib/ext.
Start netbeans.
Larry
>>> dave@oxygensoft.com 07/29/02 12:09 PM >>>
Has anybody succeeded in upgrading netbeans
from ant 1.4.1 to ant 1.5? Do you know when
netbeans intends to support ant 1.5?
Thanks,
Dave
Dave Smith wrote:
> Thanks for the advice. I'm having some problems when I follow your
> instructions. During startup, Forte (I'm using forte 4 and not netbeans,
> although I can switch if it will make any difference) displays the following
> error dialog: "Could not install module Ant - The package containing class
> org.apache.tools.ant.Location was not loaded". The class it complains about
> is in the new v1.5 ant.jar in $FORTE_HOME/modules/ext. Do you know how I can
> help Forte find what it needs in the new jar files?
http://ant.netbeans.org/faq.html
Probably you deleted e.g. modules/ext/ant-1.4.1.jar and added e.g.
modules/ext/ant-1.5.jar. This will not work because modules/ant.jar
refers to specific extension JAR names to load them. You must replace
modules/ext/ant-1.4.1.jar *without changing* the file name, or (if
you're being pedantic) modify the manifest of modules/ant.jar to ask for
e.g. ext/ant-1.5.jar.
-Jesse
--
Jesse Glick <mailto:jesse.glick@sun.com> x22801
NetBeans, Open APIs <http://www.netbeans.org/>
I just ugraded my netbeans 3.4 to use ant 1.5.1.
I have getting the following error in my build script
Unable to load dependency analyzer:
org.apache.tools.ant.util.depend.bcel.AncestorAnalyzer
I posted this to the ant user group and they said I need to copy a bcel.jar
file to my ANT_HOME/lib directory...(see emails below) where in the netbeans
directory structure should this file go?
Thanks,
Karen
--Original Message--
From: Kuram, Harish [mailto:harish.kuram@capitalone.com]
Sent: Thursday, January 02, 2003 11:47 AM
To: 'Ant Users List'
Subject: RE: Upgrade to Ant 1.5
Please check the WHATSNEW file that gets shipped with the Ant distribution.
You may specify dependency="none" if you don't need to include every class
your ejb refers to in the jar file you are trying to create. This will get
rid of your warning.
if you need the bcel library you can download it from the jakarta site.
http://jakarta.apache.org/builds/jakarta-bcel/release/v5.0/
You need to unzip the file and copy just the bcel.jar to your ANT_HOME/lib
directory.
There is full documentation for the <ejbjar> task and it mentions how to use
the dependency property.
good luck
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
All,
I found this blurb in the WHATSNEW file in the binary distribution of Ant
1.5.1
I didn't use the "dependency" to add new files but the <ejbjar> task
completed and the jar files looks OK.
I am yet to do runtime testing of the jar file.
* <ejbjar> now allows control over which additional classes and interfaces
are added to the generated EJB jars. A new attribute "dependency" can be
defined which controls what classes are added. The addition of classes now
uses
the Jakarta-BCEL library rather than reflection, meaning bean classes are
no longer loaded into Ant's JVM. The default dependency analyzer is known
as
the ancestor analyzer. It provides the same behaviour as the 1.4.1 version
of
<ejbjar>. If the BCEL library is not present, a warning will be issued
stating
the ancestor analyzer is not available. In this case <ejbjar> will
continue
to function but will not add super classes to the jar.
harish
--Original Message--
From: Karen Schaper [mailto:Karen.Schaper@danzas.com]
Sent: Thursday, January 02, 2003 11:36 AM
To: Ant Users List
Subject: Upgrade to Ant 1.5
I have upgraded to ant1.5 and some parts of my build script are not working
I am getting the following error message
Unable to load dependency analyzer:
org.apache.tools.ant.util.depend.bcel.AncestorAnalyzer
Is there a list of what needs to be modified when upgraded to ant 1.5 from
ant 1.4?
Thanks
Karen