Re: JUnit optional task

2001-12-10 Thread Jill Stephenson

Add JUNIT_HOME/junit.jar to your classpath before
invoking ant.

--
Jill

- Original Message - 
From: "Bryan P. Glennon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 11, 2001 8:18 AM
Subject: JUnit optional task


When I try to use the Junit task (with ant 1.4.1, Junit 3.7 and
jdk1.2.2) I get the following error:

Could not create task of type: junit. Common solutions are to use
taskdef to declare your task, or, if this is an optional task, to put
the optional.jar in the lib directory of your ant installation
(ANT_HOME).

Well, optional.jar is in the ANT_HOME/lib dir (as is
jakarta-ant-1.4.1-optional.jar.) Actually, optional.jar is just a copy
of jakarta-ant-1.4.1-optional.jar.

So, what am I doing wrong?

Thanks,
Bryan
--
Bryan Glennon (mailto:[EMAIL PROTECTED])
BPG Consulting, Inc. (http://www.bpgc.com)
Tech Question? (mailto:[EMAIL PROTECTED])

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



---

The contents of this message are the views of the Author and do not necessarily 
reflect the views of SUNCORP METWAY LTD  ABN 66 010 831 722. 

The content of this e-mail, including attachments is a confidential communication 
between the Suncorp Metway Group and the intended addressee. Any unauthorised use of 
the contents is expressly prohibited. If you have received this e-mail in error please 
contact the sender immediately and then delete the message and any attachment(s).

http://www.suncorpmetway.com.au


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Setting classpath for Taskdef

2001-12-09 Thread Jill Stephenson

1) I have a mimimal batch script ...

setlocal

rem NULL out the classpath, we set this internally
set CLASSPATH=

rem Java Development Kit
set JAVA_HOME=c:\java\jdk1.3.1_01
set PATH=%JAVA_HOME%\bin;%PATH%

rem ANT
set ANT_HOME=c:\java\jakarta-ant-1.4
set PATH=%PATH%;%ANT_HOME%\bin

cmd /c ant atest

endlocal

2) I moved the optional jar out of ants lib directory

3) I have the following target in my build script

  

  


  




  


While this obviously does not succeed in sending mail the mimeMail task is
actually invoked as you can see in the output below ...

Buildfile: build.xml

atest:
 [mimeMail] sending email

BUILD FAILED

J:\js\working\xxx\build.xml:613: javax.mail.SendFailedException: Sending
failed;
  nested exception is:
javax.mail.MessagingException: Could not connect to SMTP host:
localhost, port: 25;
  nested exception is:
java.net.ConnectException: Connection refused: connect

Total time: 2 seconds

--
Jill

- Original Message -
From: "William Ferguson" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
Sent: Monday, December 10, 2001 2:56 PM
Subject: RE: Setting classpath for Taskdef


> > Is ${project} defined and pointing to the right place?
>
> Yes
>
> > Is ${project}/tools/ant/lib/optional.jar" the correct location
> > for where you moved the jar to?
>
> Yes
>
> > Try running your build with -verbose and -debug to see if
> > you can get any more information from that.
>
> Always do - no ehlp there.
>
> How are you invoking Ant?
> Are you using Ant.bat or invoking org.apache.tools.ant.Main directly?
> Do you have optional.jar and j2ee.jar in %ANT_HOME%\lib or have you
> specified them on the Ant command line.
>
> William
>
> >
> > --
> > Jill
> >
> >
> > - Original Message -
> > From: "William Ferguson" <[EMAIL PROTECTED]>
> > To: "'Ant Users List'" <[EMAIL PROTECTED]>
> > Sent: Monday, December 10, 2001 2:27 PM
> > Subject: RE: Setting classpath for Taskdef
> >
> >
> > > The task and the taskdef both have the exact same case 'mimeMail'.
> > >
> > > > -Original Message-
> > > > From: Jill Stephenson
> > [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, 10 December 2001 14:52
> > > > To: Ant Users List
> > > > Subject: Re: Setting classpath for Taskdef
> > > >
> > > >
> > > > Try changing the name of the taskdef to be all lowercase, it
> > > > seems like the case of the task definition and actual usage of
> > > > the task must match  ...
> > > >
> > > > --
> > > > Jill
> > > >
> > > >
> > > > - Original Message -
> > > > From: "William Ferguson" <[EMAIL PROTECTED]>
> > > > To: "'Ant Users List'" <[EMAIL PROTECTED]>
> > > > Sent: Monday, December 10, 2001 12:29 PM
> > > > Subject: RE: Setting classpath for Taskdef
> > > >
> > > >
> > > > > OK.
> > > > >
> > > > > If I remove optional.jar from %ANT_HOME%\lib but define it
> > > > in the MimeMail
> > > > > taskdef along with J2ee.jar,
> > > > > then Ant can't find the MimeMail task.
> > > > >
> > > > > ie
> > > > >
> > > > >  > > > > classname="org.apache.tools.ant.taskdefs.optional.net.MimeMail">
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > > Gives
> > > > >
> > > > > D:\source\main\buildScripts\NightlyBuild.xml:44: taskdef class
> > > > > org.apache.tools.ant.taskdefs.optional.net.MimeMail
> > cannot be found
> > > > > at
> > > > >
> > > >
> > org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:176)
> > > > > at
> > > > org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:114)
> > > > >
> > > > > etc
> > > > >
> > > > > But if I define the taskdef for MimeMail as above and
> > don't remove
> > > > > optional.jar from %ANT_HOME%\lib then I get
> > > > >
> > > > >
> > > > > D:\source\main\buildScripts\NightlyBuild.xml:172: Could not
> > > > create t

Re: Setting classpath for Taskdef

2001-12-09 Thread Jill Stephenson

I got it to work with Ant 1.4 with JDK 1.3.1 on Win2k.

Is ${project} defined and pointing to the right place?

Is ${project}/tools/ant/lib/optional.jar" the correct location
for where you moved the jar to?

Try running your build with -verbose and -debug to see if
you can get any more information from that.

--
Jill


- Original Message -
From: "William Ferguson" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
Sent: Monday, December 10, 2001 2:27 PM
Subject: RE: Setting classpath for Taskdef


> The task and the taskdef both have the exact same case 'mimeMail'.
>
> > -Original Message-
> > From: Jill Stephenson [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, 10 December 2001 14:52
> > To: Ant Users List
> > Subject: Re: Setting classpath for Taskdef
> >
> >
> > Try changing the name of the taskdef to be all lowercase, it
> > seems like the case of the task definition and actual usage of
> > the task must match  ...
> >
> > --
> > Jill
> >
> >
> > - Original Message -
> > From: "William Ferguson" <[EMAIL PROTECTED]>
> > To: "'Ant Users List'" <[EMAIL PROTECTED]>
> > Sent: Monday, December 10, 2001 12:29 PM
> > Subject: RE: Setting classpath for Taskdef
> >
> >
> > > OK.
> > >
> > > If I remove optional.jar from %ANT_HOME%\lib but define it
> > in the MimeMail
> > > taskdef along with J2ee.jar,
> > > then Ant can't find the MimeMail task.
> > >
> > > ie
> > >
> > >  > > classname="org.apache.tools.ant.taskdefs.optional.net.MimeMail">
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > > Gives
> > >
> > > D:\source\main\buildScripts\NightlyBuild.xml:44: taskdef class
> > > org.apache.tools.ant.taskdefs.optional.net.MimeMail cannot be found
> > > at
> > >
> > org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:176)
> > > at
> > org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:114)
> > >
> > > etc
> > >
> > > But if I define the taskdef for MimeMail as above and don't remove
> > > optional.jar from %ANT_HOME%\lib then I get
> > >
> > >
> > > D:\source\main\buildScripts\NightlyBuild.xml:172: Could not
> > create task of
> > > type: mimeMail due to java.lang.NoClassDefFoundError:
> > javax/mail/Address
> > > at org.apache.tools.ant.Project.createTask(Project.java:509)
> > > at
> > >
> > org.apache.tools.ant.UnknownElement.makeTask(UnknownElement.java:148)
> > > at
> > >
> > org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElem
> > ent.java:83)
> > > at org.apache.tools.ant.Task.perform(Task.java:216)
> > >
> > >
> > > So it wuld seem that Ant definitely requires the optional.jar in its
> > > classpath when executed, and can't pick it up from the
> > taskdef classpath
> > > attribute.
> > >
> > > It also seems that Ant requires that any libraries that are
> > needed by an
> > > optional task to also be included in Ant's classpath.
> > > Ie these classes can't be specified via the classpath attribute of
> > taskdef.
> > >
> > > So either I'm doing something totally wrong, or the
> > classpath attribute
> > > doesn't appear to function.
> > >
> > > William
> > >
> > >
> > > > -Original Message-
> > > > From: Steve Loughran [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, 10 December 2001 12:55
> > > > To: Ant Users List
> > > > Subject: Re: Setting classpath for Taskdef
> > > >
> > > >
> > > >
> > > > - Original Message -
> > > > From: "William Ferguson" <[EMAIL PROTECTED]>
> > > > To: "'Ant Users List'" <[EMAIL PROTECTED]>
> > > > Sent: Sunday, December 09, 2001 4:32 PM
> > > > Subject: RE: Setting classpath for Taskdef
> > > >
> > > >
> > > > > Thanks Eric,
> > > > >
> > > > > optional.jar is already in %ANT_HOME%\lib and it finds it OK.
> > > > > It's just not finding j2ee.jar
> > > >
> > > > That is because the task in optional.jar is in a different
> &g

Re: Setting classpath for Taskdef

2001-12-09 Thread Jill Stephenson

Try changing the name of the taskdef to be all lowercase, it
seems like the case of the task definition and actual usage of
the task must match  ...

--
Jill


- Original Message -
From: "William Ferguson" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
Sent: Monday, December 10, 2001 12:29 PM
Subject: RE: Setting classpath for Taskdef


> OK.
>
> If I remove optional.jar from %ANT_HOME%\lib but define it in the MimeMail
> taskdef along with J2ee.jar,
> then Ant can't find the MimeMail task.
>
> ie
>
>  classname="org.apache.tools.ant.taskdefs.optional.net.MimeMail">
> 
> 
> 
> 
> 
>
> Gives
>
> D:\source\main\buildScripts\NightlyBuild.xml:44: taskdef class
> org.apache.tools.ant.taskdefs.optional.net.MimeMail cannot be found
> at
> org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:176)
> at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:114)
>
> etc
>
> But if I define the taskdef for MimeMail as above and don't remove
> optional.jar from %ANT_HOME%\lib then I get
>
>
> D:\source\main\buildScripts\NightlyBuild.xml:172: Could not create task of
> type: mimeMail due to java.lang.NoClassDefFoundError: javax/mail/Address
> at org.apache.tools.ant.Project.createTask(Project.java:509)
> at
> org.apache.tools.ant.UnknownElement.makeTask(UnknownElement.java:148)
> at
> org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:83)
> at org.apache.tools.ant.Task.perform(Task.java:216)
>
>
> So it wuld seem that Ant definitely requires the optional.jar in its
> classpath when executed, and can't pick it up from the taskdef classpath
> attribute.
>
> It also seems that Ant requires that any libraries that are needed by an
> optional task to also be included in Ant's classpath.
> Ie these classes can't be specified via the classpath attribute of
taskdef.
>
> So either I'm doing something totally wrong, or the classpath attribute
> doesn't appear to function.
>
> William
>
>
> > -Original Message-
> > From: Steve Loughran [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, 10 December 2001 12:55
> > To: Ant Users List
> > Subject: Re: Setting classpath for Taskdef
> >
> >
> >
> > - Original Message -
> > From: "William Ferguson" <[EMAIL PROTECTED]>
> > To: "'Ant Users List'" <[EMAIL PROTECTED]>
> > Sent: Sunday, December 09, 2001 4:32 PM
> > Subject: RE: Setting classpath for Taskdef
> >
> >
> > > Thanks Eric,
> > >
> > > optional.jar is already in %ANT_HOME%\lib and it finds it OK.
> > > It's just not finding j2ee.jar
> >
> > That is because the task in optional.jar is in a different
> > classloader from
> > the j2ee jar.
> >
> > > If I explicitly add j2ee.jar to the classpath when I invoke Ant then
> > > everything works OK.
> > > But that is not an optimal solution.
> >
> > It is all you get unless you pull optional.jar from ant\lib
> > and include it
> > in the classpath you spec for MimeMail.
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>


---

The contents of this message are the views of the Author and do not necessarily 
reflect the views of SUNCORP METWAY LTD  ABN 66 010 831 722. 

The content of this e-mail, including attachments is a confidential communication 
between the Suncorp Metway Group and the intended addressee. Any unauthorised use of 
the contents is expressly prohibited. If you have received this e-mail in error please 
contact the sender immediately and then delete the message and any attachment(s).

http://www.suncorpmetway.com.au


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Setting classpath for Taskdef

2001-12-09 Thread Jill Stephenson

As per the optional task doco for MimeMail "JavaMail and
Java Activation Framework are required for this task."  So
if you don't want to put j2ee.jar in your classpath you must
at least download the apis and put them in your classpath.

--
Jill

- Original Message -
From: "William Ferguson" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
Sent: Monday, December 10, 2001 10:32 AM
Subject: RE: Setting classpath for Taskdef


> Thanks Eric,
>
> optional.jar is already in %ANT_HOME%\lib and it finds it OK.
> It's just not finding j2ee.jar
>
> If I explicitly add j2ee.jar to the classpath when I invoke Ant then
> everything works OK.
> But that is not an optimal solution.
>
>
> William
>
>
> > -Original Message-
> > From: Erik Hatcher [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, 10 December 2001 10:48
> > To: Ant Users List
> > Subject: Re: Setting classpath for Taskdef
> >
> >
> > At the very least you'll also need Ant's optional.jar in that nested
> > classpath, as that is where
> > org.apache.tools.ant.taskdefs.optional.net.MimeMail lives.
> >
> > I'm not sure that will complete fix it as I haven't tried it
> > myself, but
> > that should get it a bit closer.
> >
> > Erik
> >
> >
> > - Original Message -
> > From: "William Ferguson" <[EMAIL PROTECTED]>
> > To: "Ant User (E-mail)" <[EMAIL PROTECTED]>
> > Sent: Sunday, December 09, 2001 6:33 PM
> > Subject: Setting classpath for Taskdef
> >
> >
> > > Has anyone managed to set the classpath attribute for TaskDef?
> > >
> > > Eg I wanted to get the MimeMail task to work without having to put
> > j2ee.jar
> > > into %ANT_HOME%\lib
> > > or specify it on the command line when invoking Ant. The
> > doco for Taskdef
> > > (and some posts on
> > > this list) seemed to suggest that the following was correct usage.
> > >
> > >  > > classname="org.apache.tools.ant.taskdefs.optional.net.MimeMail"
> > > 
> > > 
> > > 
> > > 
> > >
> > > where ${project}/lib/j2ee/j2ee.jar is where the j2ee.jar resides.
> > > But I just get "Could not create task of type: mimeMail due to
> > > java.lang.NoClassDefFoundError: javax/mail/Address"
> > >
> > > Any suggestions?
> > >
> > >
> > >
> > > William Ferguson
> > > Technical Lead - Workflow Functionality
> > > Versata, Inc.
> > > "Business Logic Development and Management"
> > > Ph +61 03 9428 0788
> > > Fax+61 03 9428 0786
> > > Email  [EMAIL PROTECTED]
> > > www.versata.com
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:

> >
> >
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>


---

The contents of this message are the views of the Author and do not necessarily 
reflect the views of SUNCORP METWAY LTD  ABN 66 010 831 722. 

The content of this e-mail, including attachments is a confidential communication 
between the Suncorp Metway Group and the intended addressee. Any unauthorised use of 
the contents is expressly prohibited. If you have received this e-mail in error please 
contact the sender immediately and then delete the message and any attachment(s).

http://www.suncorpmetway.com.au


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Setting envrionment variables from within build.xml

2001-12-06 Thread Jill Stephenson

How about looking at the problem another way and extracting out
the common code into a subtarget to which you can pass a parameter
using the antcall task.  Something along the lines of the following ...


   
 
 
   



  

  
  

  


--
Jill

- Original Message -
From: "Ron Coutts" <[EMAIL PROTECTED]>
To: "'Ant Users List' (E-mail)" <[EMAIL PROTECTED]>
Sent: Friday, December 07, 2001 8:59 AM
Subject: Setting envrionment variables from within build.xml


I was wondering if there's any way in Ant to set an environment variable
once before a series of  tasks.  Consider the snippet of build.xml
below that is used to set the environment variable 'CL' before executing
the command line compiler 'msdev.exe'.  This XML works, but is an error
prone maintenace headache because the nested element  must be
repeatedly used.  Is there any way around this, such that I can set  the
environment variable 'CL' once before multiple 's?

Ron Coutts













--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



---

The contents of this message are the views of the Author and do not necessarily 
reflect the views of SUNCORP METWAY LTD  ABN 66 010 831 722. 

The content of this e-mail, including attachments is a confidential communication 
between the Suncorp Metway Group and the intended addressee. Any unauthorised use of 
the contents is expressly prohibited. If you have received this e-mail in error please 
contact the sender immediately and then delete the message and any attachment(s).

http://www.suncorpmetway.com.au


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Quoting issue

2001-12-05 Thread Jill Stephenson

The value passed to signtool probably needs to be enclosed
in quotes, try



--
Jill
- Original Message -
From: "Ed Mangual" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 06, 2001 7:47 AM
Subject: Quoting issue


> How do you escape apostrophes? I having a small issue running exec, I
> have the following:
>
> user.properties snippet
>
> nshome=c\:/Program Files/Netscape/Users/default
>
> build.xml snippet
>
>  
>
>  failonerror="true">
> 
> 
>
>
> error:
>
> c:\projects\afi54\build\signcode.xml:72: unbalanced quotes in
> -dc:/Program Files/Netscape/Users/default -c9 -kS1 Corp's
> VeriSign, Inc. ID --verbosity -1 -Z appletBridge.jar -e.class
> -e.properties .
> at
> org.apache.tools.ant.types.Commandline.translateCommandline(Compiled
> Code)
> at
> org.apache.tools.ant.types.Commandline$Argument.setLine(Commandline.java
> :127)
> at org.apache.tools.ant.IntrospectionHelper$5.set(Compiled Code)
> at
> org.apache.tools.ant.IntrospectionHelper.setAttribute(Compiled Code)
> at org.apache.tools.ant.ProjectHelper.configure(Compiled Code)
> at
> org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(Compiled Code)
> at
> org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(Compiled Code)
> at org.apache.tools.ant.Task.maybeConfigure(Task.java:178)
> at org.apache.tools.ant.Task.perform(Task.java:216)
> at org.apache.tools.ant.Target.execute(Compiled Code)
> at org.apache.tools.ant.Target.performTasks(Target.java:202)
> at org.apache.tools.ant.Project.executeTarget(Compiled Code)
> at org.apache.tools.ant.Project.executeTargets(Compiled Code)
> at org.apache.tools.ant.Main.runBuild(Compiled Code)
> at org.apache.tools.ant.Main.start(Compiled Code)
> at org.apache.tools.ant.Main.main(Main.java:176)
>
>
>
> I'm using ant 1.4.1, w2k sp2.
>
>
> Any ideas?
>
>






> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


---

The contents of this message are the views of the Author and do not necessarily 
reflect the views of SUNCORP METWAY LTD  ABN 66 010 831 722. 

The content of this e-mail, including attachments is a confidential communication 
between the Suncorp Metway Group and the intended addressee. Any unauthorised use of 
the contents is expressly prohibited. If you have received this e-mail in error please 
contact the sender immediately and then delete the message and any attachment(s).

http://www.suncorpmetway.com.au


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Build Fails on HP-UX

2001-12-05 Thread Jill Stephenson

Sorry, always best to fully read the question first ;)
I didn't realise you were compiling ant.

I just tried the same thing myself after downloading the
tar.gz file only to find a bunch of the files have
corrupt names ending in 100644.  I don't know if this
in the gnu tar problem, I just tried it on W2K with
WinZip.  Try the zip file if you want the source.

However, if you're new to ant I would suggest downloading
the prebuilt version and start with that rather than trying
to build it yourself ...

--
Jill

- Original Message -
From: "Brenneis, Steve" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, December 06, 2001 8:14 AM
Subject: RE: Build Fails on HP-UX


> > -Original Message-
> > From: Jill Stephenson [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, December 05, 2001 4:55 PM
> > To: Ant Users List
> > Subject: Re: Build Fails on HP-UX
> >
> >
> > You must be using optional ant tasks, so you need to put
> > the ant optional jar (downloadable seperately from jakarta)
> > into ANT_HOME/lib.
> >
> > --
> > Jill
>
> Thanks for the reply, Jill.
>
> How would I know if I was using optional ant tasks? I just untarred the
> source from Jakarta and issued the build command following the
instructions
> on the website. Does ant come configured for optional tasks? Also, I don't
> have an ANT_HOME yet.
>
> >
> > - Original Message -
> > From: "Brenneis, Steve" <[EMAIL PROTECTED]>
> > To: "'Ant Users List'" <[EMAIL PROTECTED]>
> > Sent: Thursday, December 06, 2001 4:26 AM
> > Subject: Build Fails on HP-UX
> >
> >
> > > Hello,
> > >
> > > I am an Ant newbie so be gentle...
> > >
> > > I am having a problem building an Ant distribution on HP-UX
> > using JDK
> > 1.3.1.
> > >
> > > Here is the info:
> > >
> > > JAVA_HOME = /usr/java/jdk1.3.1_01
> > > PATH =
> > >
> > /etc:/usr/etc:/home/sbrennei/bin:/usr/local/bin:/bin:/usr/bin:
> > /usr/bin/X11:/
> > > usr/java/jdk1.3.1_01/bin/
> > > ANT_HOME and CLASSPATH are undefined.
> > >
> > > Thanks in advance to anyone that helps. The output is below:
> > >
> > >  /gto3/sbrennei/jakarta-ant-1.4.1 > ./build.sh
> > > -Ddist.dir=/gto3/sbrennei/jakarta-ant dist
> > >
> > > ... Bootstrapping Ant Distribution
> > > ... Compiling Ant Classes
> > > Note: Some input files use or override a deprecated API.
> > > Note: Recompile with -deprecation for details.
> > > ... Copying Required Files
> > > ... Building Ant Distribution
> > > Buildfile: build.xml
> > >
> > > bootstrap:
> > >
> > > prepare:
> > >
> > > check_for_optional_packages:
> > >
> > > build:
> > > Created dir: /gto3/sbrennei/jakarta-ant-1.4.1/build/lib
> > > Compiling 61 source files to
> > /gto3/sbrennei/jakarta-ant-1.4.1/build/classes
> > >
> > /gto3/sbrennei/jakarta-ant-1.4.1/src/main/org/apache/tools/ant
> > /taskdefs/opti
> > > onal/depend/ClassFile.java:59: package
> > > org.apache.tools.ant.taskdefs.optional.depend.constantpool
> > does not exist
> > > import org.apache.tools.ant.taskdefs.optional.depend.constantpool.*;
> > > ^
> > >
> > /gto3/sbrennei/jakarta-ant-1.4.1/src/main/org/apache/tools/ant
> > /taskdefs/opti
> > > onal/depend/ClassFile.java:81: cannot resolve symbol
> > > symbol  : class ConstantPool
> > > location: class
> > org.apache.tools.ant.taskdefs.optional.depend.ClassFile
> > > private ConstantPool constantPool;
> > > ^
> > >
> > /gto3/sbrennei/jakarta-ant-1.4.1/src/main/org/apache/tools/ant
> > /taskdefs/opti
> > > onal/ejb/EjbJar.java:267: cannot resolve symbol
> > > symbol  : class WeblogicTOPLinkDeploymentTool
> > > location: class org.apache.tools.ant.taskdefs.optional.ejb.EjbJar
> > > public WeblogicTOPLinkDeploymentTool createWeblogictoplink() {
> > >^
> > >
> > /gto3/sbrennei/jakarta-ant-1.4.1/src/main/org/apache/tools/ant
> > /taskdefs/opti
> > > onal/depend/ClassFile.java:115: cannot resolve symbol
> > > symbol  : class ConstantPool
> > > location: class
> > org.apache.tools.ant.taskdefs.optional.depend.ClassFile
> > > constantPool = new ConstantPool();
> > >^
> > >
> > /gto3/

Re: Build Fails on HP-UX

2001-12-05 Thread Jill Stephenson

You must be using optional ant tasks, so you need to put
the ant optional jar (downloadable seperately from jakarta)
into ANT_HOME/lib.

--
Jill

- Original Message -
From: "Brenneis, Steve" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, December 06, 2001 4:26 AM
Subject: Build Fails on HP-UX


> Hello,
>
> I am an Ant newbie so be gentle...
>
> I am having a problem building an Ant distribution on HP-UX using JDK
1.3.1.
>
> Here is the info:
>
> JAVA_HOME = /usr/java/jdk1.3.1_01
> PATH =
>
/etc:/usr/etc:/home/sbrennei/bin:/usr/local/bin:/bin:/usr/bin:/usr/bin/X11:/
> usr/java/jdk1.3.1_01/bin/
> ANT_HOME and CLASSPATH are undefined.
>
> Thanks in advance to anyone that helps. The output is below:
>
>  /gto3/sbrennei/jakarta-ant-1.4.1 > ./build.sh
> -Ddist.dir=/gto3/sbrennei/jakarta-ant dist
>
> ... Bootstrapping Ant Distribution
> ... Compiling Ant Classes
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -deprecation for details.
> ... Copying Required Files
> ... Building Ant Distribution
> Buildfile: build.xml
>
> bootstrap:
>
> prepare:
>
> check_for_optional_packages:
>
> build:
> Created dir: /gto3/sbrennei/jakarta-ant-1.4.1/build/lib
> Compiling 61 source files to
/gto3/sbrennei/jakarta-ant-1.4.1/build/classes
>
/gto3/sbrennei/jakarta-ant-1.4.1/src/main/org/apache/tools/ant/taskdefs/opti
> onal/depend/ClassFile.java:59: package
> org.apache.tools.ant.taskdefs.optional.depend.constantpool does not exist
> import org.apache.tools.ant.taskdefs.optional.depend.constantpool.*;
> ^
>
/gto3/sbrennei/jakarta-ant-1.4.1/src/main/org/apache/tools/ant/taskdefs/opti
> onal/depend/ClassFile.java:81: cannot resolve symbol
> symbol  : class ConstantPool
> location: class org.apache.tools.ant.taskdefs.optional.depend.ClassFile
> private ConstantPool constantPool;
> ^
>
/gto3/sbrennei/jakarta-ant-1.4.1/src/main/org/apache/tools/ant/taskdefs/opti
> onal/ejb/EjbJar.java:267: cannot resolve symbol
> symbol  : class WeblogicTOPLinkDeploymentTool
> location: class org.apache.tools.ant.taskdefs.optional.ejb.EjbJar
> public WeblogicTOPLinkDeploymentTool createWeblogictoplink() {
>^
>
/gto3/sbrennei/jakarta-ant-1.4.1/src/main/org/apache/tools/ant/taskdefs/opti
> onal/depend/ClassFile.java:115: cannot resolve symbol
> symbol  : class ConstantPool
> location: class org.apache.tools.ant.taskdefs.optional.depend.ClassFile
> constantPool = new ConstantPool();
>^
>
/gto3/sbrennei/jakarta-ant-1.4.1/src/main/org/apache/tools/ant/taskdefs/opti
> onal/depend/ClassFile.java:123: cannot resolve symbol
> symbol  : class ClassCPInfo
> location: class org.apache.tools.ant.taskdefs.optional.depend.ClassFile
> className = ((ClassCPInfo)
> constantPool.getEntry(thisClassIndex)).getClassName();
>   ^
>
/gto3/sbrennei/jakarta-ant-1.4.1/src/main/org/apache/tools/ant/taskdefs/opti
> onal/depend/ClassFile.java:135: cannot resolve symbol
> symbol  : class ConstantPoolEntry
> location: class org.apache.tools.ant.taskdefs.optional.depend.ClassFile
> ConstantPoolEntry entry = constantPool.getEntry(i);
> ^
>
/gto3/sbrennei/jakarta-ant-1.4.1/src/main/org/apache/tools/ant/taskdefs/opti
> onal/depend/ClassFile.java:137: cannot resolve symbol
> symbol  : variable ConstantPoolEntry
> location: class org.apache.tools.ant.taskdefs.optional.depend.ClassFile
> if (entry != null && entry.getTag() ==
> ConstantPoolEntry.CONSTANT_Class) {
>^
>
/gto3/sbrennei/jakarta-ant-1.4.1/src/main/org/apache/tools/ant/taskdefs/opti
> onal/depend/ClassFile.java:138: cannot resolve symbol
> symbol  : class ClassCPInfo
> location: class org.apache.tools.ant.taskdefs.optional.depend.ClassFile
> ClassCPInfo classEntry = (ClassCPInfo) entry;
> ^
>
/gto3/sbrennei/jakarta-ant-1.4.1/src/main/org/apache/tools/ant/taskdefs/opti
> onal/depend/ClassFile.java:138: cannot resolve symbol
> symbol  : class ClassCPInfo
> location: class org.apache.tools.ant.taskdefs.optional.depend.ClassFile
> ClassCPInfo classEntry = (ClassCPInfo) entry;
>   ^
>
/gto3/sbrennei/jakarta-ant-1.4.1/src/main/org/apache/tools/ant/taskdefs/opti
> onal/ejb/EjbJar.java:268: cannot resolve symbol
> symbol  : class WeblogicTOPLinkDeploymentTool
> location: class org.apache.tools.ant.taskdefs.optional.ejb.EjbJar
> WeblogicTOPLinkDeploymentTool tool = new
> WeblogicTOPLinkDeploymentTool();
> ^
>
/gto3/sbrennei/jakarta-ant-1.4.1/src/main/org/apache/tools/ant/taskdefs/opti
> onal/ejb/EjbJar.java:268: cannot resolve symbol
> symbol  : class WeblogicTOPLinkDeploymentTool
> location: class org.apache.tools.ant.taskdefs.optional.ejb.EjbJar
> WeblogicTOPLinkDeploymentTool tool = new
> WeblogicTOPLinkDeploymentTool();
>  

Re: Ant Task

2001-12-02 Thread Jill Stephenson

Use the optional wlrun task, eg.,

  
  

  

where the properties are defined as appropriate to your environment.

--
Jill

- Original Message -
From: "Melroy Rodrigues" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 03, 2001 4:30 AM
Subject: Ant Task


> Hi,
>
> I want to run startWeblogic.cmd via ant. How will I be
> able to do this?
>
> I have set up an ant command using exec and pointed to
> the startWeblogic.cmd but it somes back with a Execute
> failure:java.io.IOException createprocess
> startWeblogic.cmd error=2
>
> Thanks
> Melroy
>
> __
> Do You Yahoo!?
> Buy the perfect holiday gifts at Yahoo! Shopping.
> http://shopping.yahoo.com
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>


---

The contents of this message are the views of the Author and do not necessarily 
reflect the views of SUNCORP METWAY LTD  ABN 66 010 831 722. 

The content of this e-mail, including attachments is a confidential communication 
between the Suncorp Metway Group and the intended addressee. Any unauthorised use of 
the contents is expressly prohibited. If you have received this e-mail in error please 
contact the sender immediately and then delete the message and any attachment(s).

http://www.suncorpmetway.com.au


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Starting JBoss from a build file

2001-11-29 Thread Jill Stephenson

Oops, found the problem.  A typo in the class name of one of the jvmargs !!

--
Jill

- Original Message -
From: "Jill Stephenson" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Thursday, November 29, 2001 4:46 PM
Subject: Starting JBoss from a build file


> I am trying to startup JBoss from within a target for running tests.
> I (think!) that I have all the relevant pieces as taken from the JBoss
> scripts run_with_tomcat.bat and run.bat.  The following is the
> relevant snippet from my build file, where jboss.home is a property
> set to my jboss installation directory.
>
>   
>
classpath=";${java.home}/../lib/tools.jar;${jboss.home}/jboss/bin/run.jar;${
> jboss.home}/jboss/lib/crimson.jar"
> fork="yes"
> dir="${jboss.home}/jboss/bin">
> 
value="-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.Do
> cumentBuilderFactoryImp" />
> 
value="-Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParse
> rFactoryImpl" />
> 
>   
>
> Everything starts off OK but it doesn't seem to be able to find the
> crimson classes as per the following output
>
>  [java] Forking
>
c:\java\jdk1.3.1_01\jre\..\bin\java.exe -Djavax.xml.parsers.DocumentBuilderF
>
actory=org.apache.crimson.jaxp.DocumentBuilderFactoryImp -Djavax.xml.parsers
> .SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl -classpath
>
C:\java\jdk1.3.1_01\lib\tools.jar;C:\java\JBoss-2.4.3_Tomcat-3.2.3\jboss\bin
> \run.jar;C:\java\JBoss-2.4.3_Tomcat-3.2.3\jboss\lib\crimson.jar
> org.jboss.Main tomcat
>  [java] jboss.home = C:\java\JBoss-2.4.3_Tomcat-3.2.3\jboss
>  [java] Using JAAS LoginConfig:
> file:/C:/java/JBoss-2.4.3_Tomcat-3.2.3/jboss/conf/tomcat/auth.conf
>  [java] Using configuration "tomcat"
>  [java] [root] Started Log4jService,
>
config=file:/C:/java/JBoss-2.4.3_Tomcat-3.2.3/jboss/conf/tomcat/log4j.proper
> ties
>  [java] [Info] Java version: 1.3.1_01,Sun Microsystems Inc.
>  [java] [Info] Java VM: Java HotSpot(TM) Client VM 1.3.1_01,Sun
> Microsystems Inc.
>  [java] [Info] System: Windows 2000 5.0,x86
>  [java] [Shutdown] Shutdown hook added
>  [java] [Default] Runtime error
>  [java] [Default] javax.xml.parsers.FactoryConfigurationError:
> java.lang.ClassNotFoundException:
> org.apache.crimson.jaxp.DocumentBuilderFactoryImp
>  [java] [Default]   at
>
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.
> java:118)
>  [java] [Default]
>  [java] [Default]   at
>
org.jboss.configuration.ConfigurationService.loadConfiguration(Configuration
> Service.java:371)
>  [java] [Default]
>  [java] [Default]   at java.lang.reflect.Method.invoke(Native Method)
>  [java] [Default]
>  [java] [Default]   at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
>  [java] [Default]
>  [java] [Default]   at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
>  [java] [Default]
>  [java] [Default]   at org.jboss.Main.(Main.java:213)
>  [java] [Default]
>  [java] [Default]   at org.jboss.Main$1.run(Main.java:127)
>  [java] [Default] JBoss 2.4.3 Started in 0m:0s
>
> The same Java command works from the command line as does the following
> ant task once I remove the pause from run.bat.  However, I'd prefer not to
> run a platform specific command file.
>
>dir="${jboss.home}/jboss/bin" />
>
> Has anyone had any success with this?  Or I am missing something obvious?
>
> --
> Jill



---

The contents of this message are the views of the Author and do not necessarily 
reflect the views of SUNCORP METWAY LTD  ABN 66 010 831 722. 

The content of this e-mail, including attachments is a confidential communication 
between the Suncorp Metway Group and the intended addressee. Any unauthorised use of 
the contents is expressly prohibited. If you have received this e-mail in error please 
contact the sender immediately and then delete the message and any attachment(s).

http://www.suncorpmetway.com.au


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Starting JBoss from a build file

2001-11-28 Thread Jill Stephenson

I am trying to startup JBoss from within a target for running tests.
I (think!) that I have all the relevant pieces as taken from the JBoss
scripts run_with_tomcat.bat and run.bat.  The following is the
relevant snippet from my build file, where jboss.home is a property
set to my jboss installation directory.

  



  

Everything starts off OK but it doesn't seem to be able to find the
crimson classes as per the following output

 [java] Forking
c:\java\jdk1.3.1_01\jre\..\bin\java.exe -Djavax.xml.parsers.DocumentBuilderF
actory=org.apache.crimson.jaxp.DocumentBuilderFactoryImp -Djavax.xml.parsers
.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl -classpath
C:\java\jdk1.3.1_01\lib\tools.jar;C:\java\JBoss-2.4.3_Tomcat-3.2.3\jboss\bin
\run.jar;C:\java\JBoss-2.4.3_Tomcat-3.2.3\jboss\lib\crimson.jar
org.jboss.Main tomcat
 [java] jboss.home = C:\java\JBoss-2.4.3_Tomcat-3.2.3\jboss
 [java] Using JAAS LoginConfig:
file:/C:/java/JBoss-2.4.3_Tomcat-3.2.3/jboss/conf/tomcat/auth.conf
 [java] Using configuration "tomcat"
 [java] [root] Started Log4jService,
config=file:/C:/java/JBoss-2.4.3_Tomcat-3.2.3/jboss/conf/tomcat/log4j.proper
ties
 [java] [Info] Java version: 1.3.1_01,Sun Microsystems Inc.
 [java] [Info] Java VM: Java HotSpot(TM) Client VM 1.3.1_01,Sun
Microsystems Inc.
 [java] [Info] System: Windows 2000 5.0,x86
 [java] [Shutdown] Shutdown hook added
 [java] [Default] Runtime error
 [java] [Default] javax.xml.parsers.FactoryConfigurationError:
java.lang.ClassNotFoundException:
org.apache.crimson.jaxp.DocumentBuilderFactoryImp
 [java] [Default]   at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.
java:118)
 [java] [Default]
 [java] [Default]   at
org.jboss.configuration.ConfigurationService.loadConfiguration(Configuration
Service.java:371)
 [java] [Default]
 [java] [Default]   at java.lang.reflect.Method.invoke(Native Method)
 [java] [Default]
 [java] [Default]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
 [java] [Default]
 [java] [Default]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
 [java] [Default]
 [java] [Default]   at org.jboss.Main.(Main.java:213)
 [java] [Default]
 [java] [Default]   at org.jboss.Main$1.run(Main.java:127)
 [java] [Default] JBoss 2.4.3 Started in 0m:0s

The same Java command works from the command line as does the following
ant task once I remove the pause from run.bat.  However, I'd prefer not to
run a platform specific command file.

  

Has anyone had any success with this?  Or I am missing something obvious?

--
Jill


---

The contents of this message are the views of the Author and do not necessarily 
reflect the views of SUNCORP METWAY LTD  ABN 66 010 831 722. 

The content of this e-mail, including attachments is a confidential communication 
between the Suncorp Metway Group and the intended addressee. Any unauthorised use of 
the contents is expressly prohibited. If you have received this e-mail in error please 
contact the sender immediately and then delete the message and any attachment(s).

http://www.suncorpmetway.com.au


--
To unsubscribe, e-mail:   
For additional commands, e-mail: