Re: Specifying Jaxp library for target

2002-04-02 Thread Stefan Bodewig

On Wed, 3 Apr 2002, Carl Brenton <[EMAIL PROTECTED]> wrote:

> Does the java compiler get executed in the same process space as
> ant and therefore use the currently loaded (library) classes?

Yes, unless you set the includeantruntime attribute of  to
false.

> Looking at ant's verbose output ("Compilation args") it seems that
> my libraries preceed ant's libraries for javac classpath (good) but
> why are any of ant's libraries also in this classpath?

Because it used to be that way and we are caught in the backwards
compatibility trap.  If it is wrong for you, you can always set
includeantruntime.

Stefan

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




Specifying Jaxp library for target

2002-04-02 Thread Carl Brenton

> This may be a dumb question but here goes...
> 
> In the latest ant download (jakarta-ant-1.4.1-bin.zip) there is the
> expected xml libraries crimson.jar and jaxp.jar. However, the
> project(s) I am building also depend on the same libraries but I want
> to specify the version that I have been using which may/may not be the
> same version as that included with ant. When I didn't specify my
> libraries, my source code (luckily) compiled meaning that the ant'
> libraries were used. 
> 
> Does the java compiler get executed in the same process space as ant
> and therefore use the currently loaded (library) classes?
> 
> Looking at ant's verbose output ("Compilation args") it seems that my
> libraries preceed ant's libraries for javac classpath (good) but why
> are any of ant's libraries also in this classpath?
> 
> Would it be wiser (although unconvensional) to have a jakarta.ant
> package prefix for it's libraries to distinguish between ant and the
> target build???
> 
> TIA,
> 
> Carl
> 
> Ps I'm running on Windows 2000 (SP2) and my classpath environment
> variable is effectively empty.

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




JTest task

2002-04-02 Thread Jon Schewe

Has anyone written a task for Parasoft's JTest?  I know it's not free, but I'm
using it and need to find or write something for it soon, so before I start
working on it I'd like to know if someone else has.  I checked the archives
and someone asked last year, but no responses yet.


-- 
Jon Schewe | http://mtu.net/~jpschewe | [EMAIL PROTECTED]
For I am convinced that neither death nor life, neither angels 
nor demons, neither the present nor the future, nor any 
powers, neither height nor depth, nor anything else in all 
creation, will be able to separate us from the love of God that 
is in Christ Jesus our Lord. - Romans 8:38-39


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




Re: Running a server in a separate JVM

2002-04-02 Thread Erik Hatcher

"yes"/"on"/"true" all the same for Ant!  (anything else is false)


- Original Message -
From: "Erik" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 8:24 PM
Subject: RE: Running a server in a separate JVM


> Oops... according to the docs, it should actually be fork="yes".
>
> > Try using the  task with a fork="true" instead of exec.
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




Re: Running a server in a separate JVM

2002-04-02 Thread Mike Williams

  >>> "Chris" == Chris Hatton <[EMAIL PROTECTED]>

  Chris> I'm attempting to use ant to start/stop Tomcat 4.0 to improve the
  Chris> turn around time on testing my server side code.

  Chris> I have been using the following target to start Tomcat... However,
  Chris> this process blocks until Tomcat exits.  Does anyone know of a way
  Chris> I can run this in a separate JVM, so that ant will return from
  Chris> this target before I kill Tomcat?

Cactus provides a 'runservertests' task, that should do what you want.

http://jakarta.apache.org/cactus/howto_ant_cactus.html

-- 
cheers,
MikeW



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




RE: Running a server in a separate JVM

2002-04-02 Thread Erik

Oops... according to the docs, it should actually be fork="yes".

> Try using the  task with a fork="true" instead of exec.



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




RE: Running a server in a separate JVM

2002-04-02 Thread Erik

Try using the  task with a fork="true" instead of exec.

-Original Message-
From: Chris Hatton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 6:34 PM
To: [EMAIL PROTECTED]
Subject: Running a server in a separate JVM


I'm attempting to use ant to start/stop Tomcat 4.0 to
improve the turn around time on testing my server side
code.

I have been using the following target to start
Tomcat...







However, this process blocks until Tomcat exits.  Does
anyone know of a way I can run this in a separate JVM,
so that ant will return from this target before I kill
Tomcat?

Thanks in advance!

Chris Hatton
Software Engineer
Denver, CO

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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



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




looking for human representative from Ant project

2002-04-02 Thread JReitano

Hi,

Ant was chosen by Software Development magazine as a finalists for this year's
Jolt Product Excellence Awards.  We will be announcing the awards at our
conference, "Software Development West," in San Jose on April 24th.  I am
looking for someone officially associated with the Ant project who can attend
our award ceremony and be prepared to accept any award that Ant might win.  If
anyone can point me to the right person, I would appreciate it.

Thanks,
John

__
John Reitano
Technical Editor
Software Development Magazine
CMP Media LLC.
600 Harrison St.
San Francisco, CA 94107
(415) 947-6182
Fax: (415) 947-6080
www.sdmagazine.com



__

Any views or opinions are solely those of the author and do not necessarily
represent those of CMP Media.

The information transmitted is intended only for the person or entity to which
it is addressed and may contain confidential and/or privileged material.  If you
are not the intended recipient of this message please do not read, copy, use or
disclose this communication and notify the sender immediately.  It should be
noted that any review, retransmission, dissemination or other use of, or taking
action or reliance upon, this information by persons or entities other than the
intended recipient is prohibited.
__


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




Running a server in a separate JVM

2002-04-02 Thread Chris Hatton

I'm attempting to use ant to start/stop Tomcat 4.0 to
improve the turn around time on testing my server side
code.

I have been using the following target to start
Tomcat...







However, this process blocks until Tomcat exits.  Does
anyone know of a way I can run this in a separate JVM,
so that ant will return from this target before I kill
Tomcat?

Thanks in advance!

Chris Hatton
Software Engineer
Denver, CO

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




Re: Please clarify a point about properties

2002-04-02 Thread Erik Hatcher

- Original Message -
From: "Brian Murray" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 10:53 AM
Subject: Please clarify a point about properties


> I'm trying to set up a precedence for setting properties as follows:
> command-line-->environment-->file.
> In searching the archives for some information about setting properties
> I saw the following statement which didn't seem accurate to me:

Yes, there is definitely a flaw with that example, thanks for pointing that
out.

How about this?




And use env.WHATEVER in your default.properties file as the property to set
there.  And internally use that property name internally to your build file
where needed and override from the command-line
using -Denv.WHATEVER=.

I'm sure there are other ways to do this with a cleaner property name.  I
prefer not to use "env." properties internally and reassign them to
non-enviromental looking names - if you wanted to do that in this case you'd
have to resort to a temporary property to act as an intermediate
placeholder, I think.

Erik

>
> >> I would like to define default properties in a
> >> property file and then "override" them from the
> >> environment. I have found two mechanisms for
> >> accomplishing this. The first is to use the
> >>  clause, the second is to use "if"
> >> and "unless" attributes on targets that do 
> >> tasks.
> >>
> > 
> > 
> > 
> >
> > then define my.desired.prop in default.properties.  It will be
> "overridden"
> > (which is a weird term, when its actually being set first instead of
> being
> > overwritten).
>
>
> Now I'm fuzzy on the whole property thing, but it seems like
>   
> Would set "my.desired.prop" to the STRING "${env.WHATEVER}" if WHATEVER
> was not a defined environment variable.  Therefore, any attempt to set
> "my.desired.prop" in the "default.properties" file would fail because
> "my.desired.prop" would already be set.
>
> Am I off base?
>
> Brian Murray
> Vanderbilt University
>
> Brian Murray
> Vanderbilt University
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




Re: referencing multiple xml files from one file.

2002-04-02 Thread Erik Hatcher

RTFM:  task.


- Original Message -
From: "Ketul Sakhpara" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 5:01 PM
Subject: referencing multiple xml files from one file.


> hi,
>I want to keep my build process modular. I want to have a separate xml
> file for checking out code, a separate file for compiling, a different xml
> file for building and packaging. Is there a way to reference these files
> from a single ant xml file ?
>
>
> Thanks!
> Ketul
>
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




RE: Environment Variables and Ant

2002-04-02 Thread Shoemaker, Michael (STL)

Thanks Dominique

Works like a charm.  

Mike

-Original Message-
From: Dominique Devienne [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 9:04 AM
To: 'Ant Users List'
Subject: RE: Environment Variables and Ant


See last example of
http://jakarta.apache.org/ant/manual/CoreTasks/property.html (at bottom of
page). --DD

 -Original Message-
From:   Shoemaker, Michael (STL) [mailto:[EMAIL PROTECTED]] 
Sent:   Tuesday, April 02, 2002 7:21 AM
To: 'Ant Users List'
Subject:Environment Variables and Ant

Hello Folks

I have a question for you.  I recently downloaded the J2EE sdk and would
like to try it out.  My dilemma involves hard coded paths in my build.xml
files.  Currently, I have an init section where I specify "".  Is it possible to remove the
hard coded c:\j2sdkee1.2.1 and replace it with an environment var like
"J2EE_HOME".  This environment var would need to be platform independent.
Thanks in advance.  

Mike

--
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: 




referencing multiple xml files from one file.

2002-04-02 Thread Ketul Sakhpara

hi,
   I want to keep my build process modular. I want to have a separate xml
file for checking out code, a separate file for compiling, a different xml
file for building and packaging. Is there a way to reference these files
from a single ant xml file ?


Thanks!
Ketul




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




Re: Is there a property that does what -logger does?

2002-04-02 Thread Erik Hatcher

No, there isn't a property way to do this.  But the latest wrapper scripts
allow you to configure an environment variable ANT_ARGS that is used.  So
you could:

set ANT_ARGS=-logger 

Erik

p.s. Again, this requires that you have the latest (past version 1.4.1)
ant.bat/.sh - you can grab that from Ant's CVS and should not be a problem
using with a 1.4.1 version of Ant.

- Original Message -
From: "Scott Ellsworth" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 2:01 PM
Subject: Is there a property that does what -logger does?


> Hi, all.
>
> I have been reading the docs, but I have not found a property-based way
> to set the logger.  Is this possible?  (I have our people trained to use
> a local.properties override for other things, so doing this to set the
> logger would make the learning curve shallower, and would mean one less
> fact for them to absorb.)
>
> Scott
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




Re: Environment Variables and Ant

2002-04-02 Thread Erik Hatcher

It just means that Ant is using the Java API to get environment variables,
and that relies on the Java runtime providing it.  Don't worry,  works in the environments you're likely to encounter.
I don't know of any where it doesn't work.  Anyone know differently?

Erik

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 4:30 PM
Subject: RE: Environment Variables and Ant


> I have wondered what the phrase  select 
> meant in that last example. It's in the second to the last
> line.
>
> Can anyone clarify?
> I assumed it meant windoze.
>
> At 07:03 AM 4/2/02, you wrote:
> >See last example of
> >http://jakarta.apache.org/ant/manual/CoreTasks/property.html (at bottom
of
> >page). --DD
> >
> >  -Original Message-
> >snip-
>
>
>
> >Is it possible to remove the
> >hard coded c:\j2sdkee1.2.1 and replace it with an environment var like
> >"J2EE_HOME".  This environment var would need to be platform independent.
> >Thanks in advance.
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




RE: Environment Variables and Ant

2002-04-02 Thread seapwc

I have wondered what the phrase  select 
meant in that last example. It's in the second to the last
line.

Can anyone clarify?
I assumed it meant windoze.

At 07:03 AM 4/2/02, you wrote:
>See last example of
>http://jakarta.apache.org/ant/manual/CoreTasks/property.html (at bottom of
>page). --DD
>
>  -Original Message-
>snip-



>Is it possible to remove the
>hard coded c:\j2sdkee1.2.1 and replace it with an environment var like
>"J2EE_HOME".  This environment var would need to be platform independent.
>Thanks in advance.


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




Is there a property that does what -logger does?

2002-04-02 Thread Scott Ellsworth

Hi, all.

I have been reading the docs, but I have not found a property-based way 
to set the logger.  Is this possible?  (I have our people trained to use 
a local.properties override for other things, so doing this to set the 
logger would make the learning curve shallower, and would mean one less 
fact for them to absorb.)

Scott


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




Problem with serialization when running a junit task

2002-04-02 Thread Richard Bolen

I'm using a junit task to test a distributed application.  The application serializes 
objects to send them over the network.  When I run my junit tests (which work 
perfectly outside of ant) I have problems with serialization.  Specifically, the 
serialVersionUid of the objects I'm sending is set to 0.  

Does anyone know why this happens?  

thanks,
Rich



Rich Bolen
Senior Software Developer
GretagMacbeth Advanced Technologies Center
79 T. W. Alexander Drive - Bldg. 4401 - Suite 250
PO Box 14026
Research Triangle Park, North Carolina 27709-4026  USA
Phone:  919-549-7575 x239,  Fax: 919-549-0421   

http://www.gretagmacbeth.com/   



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




RE: Research question

2002-04-02 Thread Brown, Michael

Simon,

I have similar requirements for proposing a cross-platform solution to build
several products.  I have requirements to build on Windows, AIX, HP-Unix,
Solaris, and OS400.  The added twist is that we want to not only build java,
we are already doing a pilot of java with ANT and Cruise Control, but we
want to build C and C++.  Are you doing anything similar or do you know of
anyone to refer me to?

Thanks,
Mike B.

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 10:00 AM
To: Ant Users List
Subject: RE: Research question


It couldn't hurt. :-)

I have passed the contact information that Stefan Bodewig gave me to our
national accounts area and they were going to make contact. I'll follow up
to see how that's going.

Simon

-Original Message-
From: Erik Hatcher [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 9:29 AM
To: Ant Users List
Subject: Re: Research question


Would the sell of a few snazzy Ant logo embroidered shirts help convince
management?!  :)

(p.s. Where are we with that?)

- Original Message -
From: "Chappell, Simon P" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 10:21 AM
Subject: RE: Research question


This gets to my whole point. Almost every IDE offers some kind of project
capability and a way to compile that project, but (usually) only from within
the IDE itself.

I desire a stand-alone build system that is cross-platform (Win2K, Linux,
Solaris, AIX, Mac OS X at a minimum), easy to use (not all of our developers
will have time to learn anything complicated *cough*make*cough*), capable of
being run from a command-line or script.

Ant meets all these needs with style. My point was to try and find
alternatives that I could list so that my proposal to use Ant didn't look
like it was written by a founding member of the Ant fan club! :-)

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526


>-Original Message-
>From: Ronn Chinowutthichai [mailto:[EMAIL PROTECTED]]
>Sent: Monday, April 01, 2002 10:39 PM
>To: Ant Users List
>Subject: Re: Research question
>
>
>What about build tools offered by IDE? JBuilder for example.
>
>I am also sure that afew years ago many people are building ad
>hoc tools
>*specifically* for Java System (whether it would be with perl, shell
>script or other languages like make rule sysntax).
>
>rOnn c.
>
>
>Chappell, Simon P wrote:
>
>>I'm writing a proposal for using ant internally as part of
>our standard build process and I am having difficulty finding
>information on the alternatives to ant. I have tried many
>different searches on the mighty Google, but with less than
>wonderful success. The few that I found seem to mostly have
>withered and died and a few even suggest switching to ant! :-)
>>
>>Can folks on this list point me at a few other tools that I
>can list in my document. Specifically, I am looking for build
>tools that are designed for Java systems (hence "make" doesn't
>make the cut).
>>
>>Simon
>>
>>-
>>Simon P. Chappell [EMAIL PROTECTED]
>>Java Programming Specialist  www.landsend.com
>>Lands' End, Inc.   (608) 935-4526
>>
>>--
>>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: 




--
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: 




RE: Research question

2002-04-02 Thread Chappell, Simon P

It couldn't hurt. :-)

I have passed the contact information that Stefan Bodewig gave me to our national 
accounts area and they were going to make contact. I'll follow up to see how that's 
going.

Simon

-Original Message-
From: Erik Hatcher [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 9:29 AM
To: Ant Users List
Subject: Re: Research question


Would the sell of a few snazzy Ant logo embroidered shirts help convince
management?!  :)

(p.s. Where are we with that?)

- Original Message -
From: "Chappell, Simon P" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 10:21 AM
Subject: RE: Research question


This gets to my whole point. Almost every IDE offers some kind of project
capability and a way to compile that project, but (usually) only from within
the IDE itself.

I desire a stand-alone build system that is cross-platform (Win2K, Linux,
Solaris, AIX, Mac OS X at a minimum), easy to use (not all of our developers
will have time to learn anything complicated *cough*make*cough*), capable of
being run from a command-line or script.

Ant meets all these needs with style. My point was to try and find
alternatives that I could list so that my proposal to use Ant didn't look
like it was written by a founding member of the Ant fan club! :-)

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526


>-Original Message-
>From: Ronn Chinowutthichai [mailto:[EMAIL PROTECTED]]
>Sent: Monday, April 01, 2002 10:39 PM
>To: Ant Users List
>Subject: Re: Research question
>
>
>What about build tools offered by IDE? JBuilder for example.
>
>I am also sure that afew years ago many people are building ad
>hoc tools
>*specifically* for Java System (whether it would be with perl, shell
>script or other languages like make rule sysntax).
>
>rOnn c.
>
>
>Chappell, Simon P wrote:
>
>>I'm writing a proposal for using ant internally as part of
>our standard build process and I am having difficulty finding
>information on the alternatives to ant. I have tried many
>different searches on the mighty Google, but with less than
>wonderful success. The few that I found seem to mostly have
>withered and died and a few even suggest switching to ant! :-)
>>
>>Can folks on this list point me at a few other tools that I
>can list in my document. Specifically, I am looking for build
>tools that are designed for Java systems (hence "make" doesn't
>make the cut).
>>
>>Simon
>>
>>-
>>Simon P. Chappell [EMAIL PROTECTED]
>>Java Programming Specialist  www.landsend.com
>>Lands' End, Inc.   (608) 935-4526
>>
>>--
>>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: 




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


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




telnet task

2002-04-02 Thread Kailash . Subramanian


All,
 I have a weird problem. I am using the  telnet task to do just ls on
the remote machine. My code looks like


 
 /home/picasso/vobadm
 ls
 /home/picasso/vobadm
 
 

 I run this on a Solaris box and doing a telnet to a HP-UX box. It hangs for ever 
as shown below,

__
Ant version 1.4.1 compiled on October 11 2001
Buildfile: /ebppvobstore/vobs/vobadm_project/Spectrum/version3.xml
Detected Java version: 1.2 in: /usr/java1.2/jre
Detected OS: SunOS
parsing buildfile /ebppvobstore/vobs/vobadm_project/Spectrum/version3.xml with URI = 
file:/ebppvobstore/vobs/vobadm_project/Spectrum
/version3.xml
Project base dir set to: /view/vobadm_ECL_HIBERNIA/ebppvobstore/vobs/HIBERNIA
 [property] Loading /ebppvobstore/vobs/vobadm_project/Spectrum/lock.properties
Build sequence for target `TELNET' is [TELNET]
Complete build sequence is [TELNET, JAR, init, startview, lock_stream, build, deploy, 
jspcompile]

UNJAR:
   [telnet] login:
   [telnet] user
   [telnet]  Password:
_
 I can see a "ttytype -s" process running on the HP-UX machine when it hangs.

 But if I run this from the HP-UX box and telnet to a Solaris box(with neccessary 
modification to the code), it works fine.


Any idea, what is going on ?

I would appreciate any help on this.

Thx
Kailash






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




RE: EJB Packaging

2002-04-02 Thread Eddie Bernard

First question: What version of Weblogic are you using?  It makes a
difference since 6.x supports the J2EE standard for packaging and (AFAIK)
5.x does not.  This means that you cannot package enterprise applications in
5.x (per the J2EE convention).

Next, take a look through the archives for this.  I, and several others,
have posted some of our findings on this very topic.  In particular, the
discussions centered on the modification of the "Class-Path" attribute the
manifest (META-INF/manifest.mf) file of the enterprise app.

However, if you answer the first question I'm sure I can provide you with a
much clearer answer ;).


Cheers!
Eddie

-Original Message-
From: Barry Jia [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 7:14 AM
To: 'Ant Users List'
Subject: EJB Packaging


First of all, I would say I am NOT an EJB guy.
But I was asked to compile and package the EJBs for WebLogic.
In our app, we have 4 EJBs(*.jar ,including a base persistent EJB) and we
have a web app (.war) which include all jsp, servlet and web app classes).
We want to package them together and then deploy them under WebLogic, when
we test them, we got ClassCastException, that maybe because we have an
indepand package(common value objects) which is used by all EJBs, any body
has any idea about how to package them? sample is better.
Thanks

__  
Barry Jia
Brightspark
Tel:416-488-1999 ext.306
Email: [EMAIL PROTECTED]   

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




Re: Research question

2002-04-02 Thread Ronn Chinowutthichai

 > I desire a stand-alone build system that is cross-platform (Win2K, 
Linux, Solaris, AIX,
 > Mac OS X at a minimum), easy to use (not all of our developers will 
have time to learn
 > anything complicated *cough*make*cough*), capable of being run from a 
command-line
 > or script.

Yep. I can't comment on any other ide but JBuilder does it pretty well 
if you just want to
compile/run and debug your code. But i think software development these 
days goes beyond
that (i.e., deploy, test, package, ...) Ant is extensible and it allows 
you to do that with
reasonable ease.

How about mentioning Antidote? That would provide some level of comfort 
to the project managers!

rOnn c.


Chappell, Simon P wrote:

>This gets to my whole point. Almost every IDE offers some kind of project capability 
>and a way to compile that project, but (usually) only from within the IDE itself.
>
>I desire a stand-alone build system that is cross-platform (Win2K, Linux, Solaris, 
>AIX, Mac OS X at a minimum), easy to use (not all of our developers will have time to 
>learn anything complicated *cough*make*cough*), capable of being run from a 
>command-line or script.
>
>Ant meets all these needs with style. My point was to try and find alternatives that 
>I could list so that my proposal to use Ant didn't look like it was written by a 
>founding member of the Ant fan club! :-)
>
>Simon
>
>-
>Simon P. Chappell [EMAIL PROTECTED]
>Java Programming Specialist  www.landsend.com
>Lands' End, Inc.   (608) 935-4526
>
>
>>-Original Message-
>>From: Ronn Chinowutthichai [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, April 01, 2002 10:39 PM
>>To: Ant Users List
>>Subject: Re: Research question
>>
>>
>>What about build tools offered by IDE? JBuilder for example.
>>
>>I am also sure that afew years ago many people are building ad 
>>hoc tools 
>>*specifically* for Java System (whether it would be with perl, shell 
>>script or other languages like make rule sysntax).
>>
>>rOnn c.
>>
>>
>>Chappell, Simon P wrote:
>>
>>>I'm writing a proposal for using ant internally as part of 
>>>
>>our standard build process and I am having difficulty finding 
>>information on the alternatives to ant. I have tried many 
>>different searches on the mighty Google, but with less than 
>>wonderful success. The few that I found seem to mostly have 
>>withered and died and a few even suggest switching to ant! :-)
>>
>>>Can folks on this list point me at a few other tools that I 
>>>
>>can list in my document. Specifically, I am looking for build 
>>tools that are designed for Java systems (hence "make" doesn't 
>>make the cut).
>>
>>>Simon
>>>
>>>-
>>>Simon P. Chappell [EMAIL PROTECTED]
>>>Java Programming Specialist  www.landsend.com
>>>Lands' End, Inc.   (608) 935-4526
>>>
>>>--
>>>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: 
>
>
>




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




Please clarify a point about properties

2002-04-02 Thread Brian Murray

I'm trying to set up a precedence for setting properties as follows:
command-line-->environment-->file. 
In searching the archives for some information about setting properties
I saw the following statement which didn't seem accurate to me:

>> I would like to define default properties in a
>> property file and then "override" them from the
>> environment. I have found two mechanisms for
>> accomplishing this. The first is to use the
>>  clause, the second is to use "if"
>> and "unless" attributes on targets that do 
>> tasks.
>>
> 
> 
> 
>
> then define my.desired.prop in default.properties.  It will be
"overridden"
> (which is a weird term, when its actually being set first instead of
being
> overwritten).


Now I'm fuzzy on the whole property thing, but it seems like
  
Would set "my.desired.prop" to the STRING "${env.WHATEVER}" if WHATEVER
was not a defined environment variable.  Therefore, any attempt to set
"my.desired.prop" in the "default.properties" file would fail because
"my.desired.prop" would already be set.  

Am I off base?

Brian Murray
Vanderbilt University

Brian Murray
Vanderbilt University


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




Re: Research question

2002-04-02 Thread Erik Hatcher

Would the sell of a few snazzy Ant logo embroidered shirts help convince
management?!  :)

(p.s. Where are we with that?)

- Original Message -
From: "Chappell, Simon P" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 10:21 AM
Subject: RE: Research question


This gets to my whole point. Almost every IDE offers some kind of project
capability and a way to compile that project, but (usually) only from within
the IDE itself.

I desire a stand-alone build system that is cross-platform (Win2K, Linux,
Solaris, AIX, Mac OS X at a minimum), easy to use (not all of our developers
will have time to learn anything complicated *cough*make*cough*), capable of
being run from a command-line or script.

Ant meets all these needs with style. My point was to try and find
alternatives that I could list so that my proposal to use Ant didn't look
like it was written by a founding member of the Ant fan club! :-)

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526


>-Original Message-
>From: Ronn Chinowutthichai [mailto:[EMAIL PROTECTED]]
>Sent: Monday, April 01, 2002 10:39 PM
>To: Ant Users List
>Subject: Re: Research question
>
>
>What about build tools offered by IDE? JBuilder for example.
>
>I am also sure that afew years ago many people are building ad
>hoc tools
>*specifically* for Java System (whether it would be with perl, shell
>script or other languages like make rule sysntax).
>
>rOnn c.
>
>
>Chappell, Simon P wrote:
>
>>I'm writing a proposal for using ant internally as part of
>our standard build process and I am having difficulty finding
>information on the alternatives to ant. I have tried many
>different searches on the mighty Google, but with less than
>wonderful success. The few that I found seem to mostly have
>withered and died and a few even suggest switching to ant! :-)
>>
>>Can folks on this list point me at a few other tools that I
>can list in my document. Specifically, I am looking for build
>tools that are designed for Java systems (hence "make" doesn't
>make the cut).
>>
>>Simon
>>
>>-
>>Simon P. Chappell [EMAIL PROTECTED]
>>Java Programming Specialist  www.landsend.com
>>Lands' End, Inc.   (608) 935-4526
>>
>>--
>>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: 




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




RE: Research question

2002-04-02 Thread Chappell, Simon P

This gets to my whole point. Almost every IDE offers some kind of project capability 
and a way to compile that project, but (usually) only from within the IDE itself.

I desire a stand-alone build system that is cross-platform (Win2K, Linux, Solaris, 
AIX, Mac OS X at a minimum), easy to use (not all of our developers will have time to 
learn anything complicated *cough*make*cough*), capable of being run from a 
command-line or script.

Ant meets all these needs with style. My point was to try and find alternatives that I 
could list so that my proposal to use Ant didn't look like it was written by a 
founding member of the Ant fan club! :-)

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526


>-Original Message-
>From: Ronn Chinowutthichai [mailto:[EMAIL PROTECTED]]
>Sent: Monday, April 01, 2002 10:39 PM
>To: Ant Users List
>Subject: Re: Research question
>
>
>What about build tools offered by IDE? JBuilder for example.
>
>I am also sure that afew years ago many people are building ad 
>hoc tools 
>*specifically* for Java System (whether it would be with perl, shell 
>script or other languages like make rule sysntax).
>
>rOnn c.
>
>
>Chappell, Simon P wrote:
>
>>I'm writing a proposal for using ant internally as part of 
>our standard build process and I am having difficulty finding 
>information on the alternatives to ant. I have tried many 
>different searches on the mighty Google, but with less than 
>wonderful success. The few that I found seem to mostly have 
>withered and died and a few even suggest switching to ant! :-)
>>
>>Can folks on this list point me at a few other tools that I 
>can list in my document. Specifically, I am looking for build 
>tools that are designed for Java systems (hence "make" doesn't 
>make the cut).
>>
>>Simon
>>
>>-
>>Simon P. Chappell [EMAIL PROTECTED]
>>Java Programming Specialist  www.landsend.com
>>Lands' End, Inc.   (608) 935-4526
>>
>>--
>>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: 




EJB Packaging

2002-04-02 Thread Barry Jia

First of all, I would say I am NOT an EJB guy.
But I was asked to compile and package the EJBs for WebLogic.
In our app, we have 4 EJBs(*.jar ,including a base persistent EJB) and we
have a web app (.war) which include all jsp, servlet and web app classes).
We want to package them together and then deploy them under WebLogic, when
we test them, we got ClassCastException, that maybe because we have an
indepand package(common value objects) which is used by all EJBs, any body
has any idea about how to package them? sample is better.
Thanks

__  
Barry Jia
Brightspark
Tel:416-488-1999 ext.306
Email: [EMAIL PROTECTED]   



RE: Environment Variables and Ant

2002-04-02 Thread Dominique Devienne

See last example of
http://jakarta.apache.org/ant/manual/CoreTasks/property.html (at bottom of
page). --DD

 -Original Message-
From:   Shoemaker, Michael (STL) [mailto:[EMAIL PROTECTED]] 
Sent:   Tuesday, April 02, 2002 7:21 AM
To: 'Ant Users List'
Subject:Environment Variables and Ant

Hello Folks

I have a question for you.  I recently downloaded the J2EE sdk and would
like to try it out.  My dilemma involves hard coded paths in my build.xml
files.  Currently, I have an init section where I specify "".  Is it possible to remove the
hard coded c:\j2sdkee1.2.1 and replace it with an environment var like
"J2EE_HOME".  This environment var would need to be platform independent.
Thanks in advance.  

Mike

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

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




Environment Variables and Ant

2002-04-02 Thread Shoemaker, Michael (STL)

Hello Folks

I have a question for you.  I recently downloaded the J2EE sdk and would
like to try it out.  My dilemma involves hard coded paths in my build.xml
files.  Currently, I have an init section where I specify "".  Is it possible to remove the
hard coded c:\j2sdkee1.2.1 and replace it with an environment var like
"J2EE_HOME".  This environment var would need to be platform independent.
Thanks in advance.  

Mike

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




Re: CVS and ant

2002-04-02 Thread stephan beal

On Tuesday 02 April 2002 02:57 am, [EMAIL PROTECTED] wrote:
>   [cvs] protocol error: `../source/src/oneOfMyFolders' has
> too many ..
>
> It is complaining the '..' - the protocol error. I did not change that else
> my ant would not be pointing to the right folder. How can I solve this
> problem?

The  task uses the standard cvs command-line client to do it's 
work, so it also has the same limitations as that tool. Cvs itself won't 
allow relative paths with ../ in an update command. Try it out on any cvs 
tree you've got laying around:

stephan@cheyenne:~/cvs/qub/lib> cvs up ../Makefile.am
protocol error: `..' has too many ..

Absolute paths will apparently also fail:

stephan@cheyenne:~/cvs/qub> export foo=$PWD
stephan@cheyenne:~/cvs/qub> cd -
/home/stephan/cvs/qub/lib
stephan@cheyenne:~/cvs/qub/lib> cvs up $foo/Makefile.am
absolute pathname `/home/stephan/cvs/qub' illegal for server
stephan@cheyenne:~/cvs/qub/lib> cd ..
stephan@cheyenne:~/cvs/qub> cvs up $foo/Makefile.am
absolute pathname `/home/stephan/cvs/qub' illegal for server
stephan@cheyenne:~/cvs/qub> echo $foo
/home/stephan/cvs/qub


- stephan
Generic Unix Computer Guy
[EMAIL PROTECTED] - http://www.einsurance.de
Office: +49 (89)  552 92 862 Handy:  +49 (179) 211 97 67
"...control is a degree of inhibition, and a system which is perfectly
inhibited is completely frozen." -- Alan W. Watts

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




Re: Pre-pending [ant-user]

2002-04-02 Thread stephan beal

On Monday 01 April 2002 22:28 pm, [EMAIL PROTECTED] wrote:
> OK, I'll set up my own filter.
>
> I just want to clarify that most lists don't have the problems you talked
> about.

Some mail clients (kmail, at least) can filter based off of the mailing list 
id. See if your client'll do that and you'll be all set. In kmail you simply 
right-click the mail, click Create Filter and select "Filter on Mailing-list 
..."

- stephan
Generic Unix Computer Guy
[EMAIL PROTECTED] - http://www.einsurance.de
Office: +49 (89)  552 92 862 Handy:  +49 (179) 211 97 67
"...control is a degree of inhibition, and a system which is perfectly
inhibited is completely frozen." -- Alan W. Watts

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




Can i include a directory path in targetfile of uptodate task

2002-04-02 Thread Abhay Kulkarni

hi all

can i include a directory name in the target file of uptodate task

directory src1 is having java files and src/clas is having class files
 



in this case will it work 
and if works with which file(s) ANT will check the timestamp of tempcasetool.java

so can anyone guide me regarding this

With Regards,
Abhay.