ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: Newbie: Building Ant 1.4.1 from within NetBeans - wierd problem with 'available' task for RegExp jar
Date Sun, 02 Jun 2002 02:43:01 GMT
I don't know what others are doing, but I only build Ant from the
command-line.  There are too many moving pieces when tossing an IDE in the
middle.   Sounds like you have that in your classpath through NetBeans
somehow - and whether you can disable that I don't know.

I bootstrap and then run the build, all through the scripts (bootstrap.bat
and build.bat, in my case).

    Erik



----- Original Message -----
From: "Shorn Tolley" <shorn_tolley@hotmail.com>
To: <ant-dev@jakarta.apache.org>
Sent: Saturday, June 01, 2002 8:13 PM
Subject: Newbie: Building Ant 1.4.1 from within NetBeans - wierd problem
with 'available' task for RegExp jar


> Hi folks,
>
> I am trying to build the Ant source code for 1.4.1.
> (as an aside, are there any FAQs or anything I should be reading as a
first
> time Ant builder?)
>
> I am able to build Ant 1.4.1 from the command line using a binary download
> of Ant 1.4.1.
>
> When I try to build Ant from within NetBeans (using the Ant project
> build.xml file), the compile fails because the script tries to build the
> org.apache.tools.ant.util.regexp.JakartaRegexpMatcher.java file.
>
> This does not happen from the command line because I haven't got the
> regexp.jar in my classpath or anywhere else for that matter.  Which means
> the 'available' task in the 'check_for_optional_packages' target doesn't
set
> the 'jakarta.regexp.present' property, which means the
JakartaRegexpMatcher
> class gets excluded from the build.
>
> Unfortunately, when building from within NetBeans, the available task
seems
> to find the RE regexp class, which means it then sets the
> 'jakarta.regexp.present' property, which eventually causes the build to
> fail.  I /think/ the RE class is being picked up from the NetBeans
> classpath.  (regexp.jar /is/ in the 'netbeans.class.path').
>
> I have gotten the build to work from within NetBeans by commenting out the
> available task that sets the 'jakarta.regexp.present' property, but I was
> wondering if anyone else is building Ant from NetBeans and have seen this
> problem?
>
> Platform:
> Windows XP
> JDK 1.3.1 (although netbeans is running on 1.4)
> Ant 1.4.1 source code
> NetBeans 3.3.1
> Using Jikes as well (but it happens with ordinary javac too)
>
> Thanks,
> Shorn.
>
> --
> To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message