Re: test environment variable and if statement

2002-02-05 Thread Ray Tayek

At 07:17 AM 2/5/02 -0500, you wrote:
>I think this is the wrong use of  personally.   ...

i was just looking at cactus's build.xml. seems like ant will pick up a 
build.properties in your current directory first.

>...
>As for junit.jar - it really should live in ANT_HOME/lib (or system
>classpath) since Ant's VM needs it for .

the cactus docs say it must.

thanks

---
ray tayek http://home.earthlink.net/~rtayek/
actively seeking telecommuting work
orange county java users group http://www.ocjug.org/
hate spam? http://samspade.org/ssw/


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




RE: error running task

2002-02-05 Thread Conor MacNeill

> From: Diane Holt [mailto:[EMAIL PROTECTED]]
>
> Get rid of the "*" -- you don't need it, since 'ls -l' will list
> everything anyway, and including an asterisk in the command line doesn't
> work unless you exec 'sh' instead of 'ls'.
>

Just to expand a bit on Diane's explanation. On Unix systems, the shell is
responsible for wildcard expansion, not the individual commands. when you
pass "*" in Ant, the shell is not involved and the command receives the "*"
char directly rather than a list of files.

Conor


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




Re: error running task

2002-02-05 Thread Diane Holt

--- Zhendi Su <[EMAIL PROTECTED]> wrote:

> I am trying to execute a command line task via ant and somehow it didn't
> work.  For example, for a simple command line task like "ls -l *"

Get rid of the "*" -- you don't need it, since 'ls -l' will list
everything anyway, and including an asterisk in the command line doesn't
work unless you exec 'sh' instead of 'ls'.

Diane

=
([EMAIL PROTECTED])



__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




error running task

2002-02-05 Thread Zhendi Su

Hi,

I am trying to execute a command line task via ant and somehow it didn't
work.  For example, for a simple command line task like "ls -l *" I
implemented as







And ant gave me:

compilejsp:
 [exec] Current OS is SunOS
 [exec] ls -l *

BUILD FAILED

/home/rsu/prototype/exec.xml:19: exec returned: -1
at
org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java,
Compiled Code)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java,

Compiled Code)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java,

Compiled Code)
at org.apache.tools.ant.Task.perform(Task.java, Compiled Code)
at org.apache.tools.ant.Target.execute(Target.java, Compiled
Code)
at org.apache.tools.ant.Target.performTasks(Target.java,
Compiled
Code)
at org.apache.tools.ant.Project.executeTarget(Project.java,
Compiled
Code)
at org.apache.tools.ant.Project.executeTargets(Project.java,
Compiled Code)
at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
at org.apache.tools.ant.Main.start(Main.java, Compiled Code)
at org.apache.tools.ant.Main.main(Main.java, Compiled Code)


Does anyone have an idea what's wrong?  I couldn't get more output from
ant by specifying -verbose or -debug.  So I have no idea what's going
on.

Thanks a lot!

Zhendi Su



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


Re: Any way to echo a fileset?

2002-02-05 Thread Scott Ellsworth


Howdy, Eddie.

Thanks much - you found it for me.

On Tuesday, February 5, 2002, at 05:25  PM, Eddie Bernard wrote:

> First thing I would suggest is to:
> 1) Get rid of the "includes" attribute since the  task is smart
> enough to know to pick up *.java -- or,
> 2) Set the "includes" and "excludes" attributes as follows:

This is a degenerate case - I use the same targets for several builds, 
and some do more with their includes/excludes.  For example, other build 
files have includes="org/metagraph/model/*.java" or a list of included 
files to be fed to javac.

Since you have reminded me, though, I am likely going to make my compile 
target a fall-through if nothing is included or excluded for just this 
reason.  Why should it bother hitting the filesystem at all if nothing 
is going to be done?

> I'd also suggest (but not certain that it's even the problem) to use
> "*.java" instead of "**.java".  I believe one asterisk is enough to 
> specify
> the pattern match 'everything with a .java extension'.

This was it.  Making the include **/*.java solved it completely.

The sad thing?  I used the same construct in ten different build files, 
so it looked like something far more subtle.  Nothing would build, and I 
could not figure out why.

Ah well - in the mean time, I solved a number of other inconsistencies, 
and got rid of four needless build properties.

Thanks again,

Scott


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




RE: Any way to echo a fileset?

2002-02-05 Thread Eddie Bernard

First thing I would suggest is to:

1) Get rid of the "includes" attribute since the  task is smart
enough to know to pick up *.java -- or,
2) Set the "includes" and "excludes" attributes as follows:


includes="**/${build.includedFiles}"
excludes="**/${build.excludedFiles}"

I'd also suggest (but not certain that it's even the problem) to use
"*.java" instead of "**.java".  I believe one asterisk is enough to specify
the pattern match 'everything with a .java extension'.



-Original Message-
From: Scott Ellsworth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 4:58 PM
To: Ant List
Subject: Any way to echo a fileset?


Hi, all.

I am trying to figure out why none of my files are getting compiled in 
one of my projects.  I presume it is something very easy, but that I am 
not seeing it because I have been staring at it all day.  If I could 
find out exactly what path on the filesystem it was looking at, I might 
be able to spot it.

I have provided below the grungy details of what I cannot find, so if 
someone does see an obvious boo-boo, I would really appreciate a pointer.

I recently reorganized the world into:

build
   standardProperties.properties
   standardTargets.targets
node_model
   build.xml
   source
 org
   metagraph
 node
   model
 Action.java

For the next few tasks, the following defines have been read.

build.basedir=ant_build
compile.source=source
compile.classes=${build.basedir}/classes
compile.classpath=""
build.includedFiles="**.java"
build.excludedFiles=""

My depend task contains:

 

My javac task is:


   
   
   


In my output, I see:

Project base dir set to: 
/Users/work/Documents/coding/isis/source/node_model
parsing buildfile 
/Users/work/Documents/coding/isis/source/node_model/build.xml with URI = 
file:/Users/work/Documents/coding/isis/source/node_model/build.xml
Override ignored for user property basedir
Project base dir set to: 
/Users/work/Documents/coding/isis/source/node_model

(NB - this base dir is correct - I want the build based out of 
node_model)

  [property] Loading 
/Users/work/Documents/coding/isis/source/build/standardProperties.properties
resolving systemId: file:../build/standardTargets.xml

(NB - This file is, indeed, in ../build, so it looks like am I based in 
node_model just like it says.)

depend:
 [mkdir] Created dir: 
/Users/work/Documents/coding/isis/source/node_model/ant_build/classes

(NB - from the depend task, we now know that ${compile.classes} is 
node_model/ant_build/classes )

compile:
  [echo] building source with **.java

(NB - this is from "building ${compile.source} with 
${build.includedFiles}", so we see that it should be looking for **.java 
files in source.  Given that the basedir is stuff/node_model, the source 
should be sought in stuff/node_model/source.)

  [echo] building **.java

(NB - this one is from "building ${build.includedFiles}")

And that is it.  No other messages from javac, and no other 
information.  Also, no class files found in the output.

 From the shell:

ls 
/Users/work/Documents/coding/isis/source/node_model/source/org/metagraph/nod
e/
model
Action.java

So, if it is looking in node_model/source for my source, it will find 
org, and under org, it will find Action.java.  Why is it not compiling?

Scott


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

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




Any way to echo a fileset?

2002-02-05 Thread Scott Ellsworth

Hi, all.

I am trying to figure out why none of my files are getting compiled in 
one of my projects.  I presume it is something very easy, but that I am 
not seeing it because I have been staring at it all day.  If I could 
find out exactly what path on the filesystem it was looking at, I might 
be able to spot it.

I have provided below the grungy details of what I cannot find, so if 
someone does see an obvious boo-boo, I would really appreciate a pointer.

I recently reorganized the world into:

build
   standardProperties.properties
   standardTargets.targets
node_model
   build.xml
   source
 org
   metagraph
 node
   model
 Action.java

For the next few tasks, the following defines have been read.

build.basedir=ant_build
compile.source=source
compile.classes=${build.basedir}/classes
compile.classpath=""
build.includedFiles="**.java"
build.excludedFiles=""

My depend task contains:

 

My javac task is:


   
   
   


In my output, I see:

Project base dir set to: 
/Users/work/Documents/coding/isis/source/node_model
parsing buildfile 
/Users/work/Documents/coding/isis/source/node_model/build.xml with URI = 
file:/Users/work/Documents/coding/isis/source/node_model/build.xml
Override ignored for user property basedir
Project base dir set to: 
/Users/work/Documents/coding/isis/source/node_model

(NB - this base dir is correct - I want the build based out of 
node_model)

  [property] Loading 
/Users/work/Documents/coding/isis/source/build/standardProperties.properties
resolving systemId: file:../build/standardTargets.xml

(NB - This file is, indeed, in ../build, so it looks like am I based in 
node_model just like it says.)

depend:
 [mkdir] Created dir: 
/Users/work/Documents/coding/isis/source/node_model/ant_build/classes

(NB - from the depend task, we now know that ${compile.classes} is 
node_model/ant_build/classes )

compile:
  [echo] building source with **.java

(NB - this is from "building ${compile.source} with 
${build.includedFiles}", so we see that it should be looking for **.java 
files in source.  Given that the basedir is stuff/node_model, the source 
should be sought in stuff/node_model/source.)

  [echo] building **.java

(NB - this one is from "building ${build.includedFiles}")

And that is it.  No other messages from javac, and no other 
information.  Also, no class files found in the output.

 From the shell:

ls 
/Users/work/Documents/coding/isis/source/node_model/source/org/metagraph/node/
model
Action.java

So, if it is looking in node_model/source for my source, it will find 
org, and under org, it will find Action.java.  Why is it not compiling?

Scott


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




error executing system command--please help

2002-02-05 Thread Zhendi Su

Hi,

I am using ant's apply task to execute a system command.  It looks like
the following:










The build failed without giving me a specific error message.  It just
told me that:

  [apply] Current OS is SunOS
[apply] ojspc -srcdir jspjava -noCompile -appRoot
/home/rsu/prototype
[apply] Executing ojspc -srcdir jspjava -noCompile -appRoot
/home/rsu/prototype /home/rsu/prototype/testjsp/silly.jsp

BUILD FAILED

/home/rsu/prototype/buildjsp.xml:19: apply returned: -1
at
org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java,
Compiled Code)
at
org.apache.tools.ant.taskdefs.ExecuteOn.runExec(ExecuteOn.java, Compiled
Code)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java,
Compiled Code)
at org.apache.tools.ant.Task.perform(Task.java, Compiled Code)
at org.apache.tools.ant.Target.execute(Target.java, Compiled
Code)
at org.apache.tools.ant.Target.performTasks(Target.java,
Compiled Code)
at org.apache.tools.ant.Project.executeTarget(Project.java,
Compiled Code)
at org.apache.tools.ant.Project.executeTargets(Project.java,
Compiled Code)
at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
at org.apache.tools.ant.Main.start(Main.java, Compiled Code)
at org.apache.tools.ant.Main.main(Main.java, Compiled Code)

Then I copied and pasted the ant generated command  after [apply]
executing
ojspc -srcdir jspjava -noCompile -appRoot /home/rsu/prototype
/home/rsu/prototype/testjsp/silly.jsp
and ran it at the command line and it succeeded.

I don't know what could be troubling ant in executing this command,
since the command itself is ok to run.  Does anyone have an idea?
Thanks a lot for your help!

Zhendi Su



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


Re: vssget appears to work but task fails

2002-02-05 Thread Nico Seessle

- Original Message -
From: "Bill Pfeiffer" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 05, 2002 9:55 PM
Subject: Re: vssget appears to work but task fails


> There are definitely multiple files checked out to other users as well as
> myself, but I am performing the get into an empty directory structure.
Do
> you think this is the cause?

No, does not seem so. But it happens for example if there is a file which is
not read-only (should not be the case, because you said you are doing a "get
to an empty directory structure").

No messages from VSS? Something that sound like a warnings, info, ...

Nico




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




Re: Can someone who knows the innards of ejbjar...

2002-02-05 Thread Steve Loughran


- Original Message -
From: "Jesse Stockall" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 05, 2002 14:00
Subject: Re: Can someone who knows the innards of ejbjar...


> On Tue, 2002-02-05 at 16:34, [EMAIL PROTECTED] wrote:
>
> > Yes, I understand that. But once the application is deployed, ant is no
> > longer involved. Ant at that point, if *I* don't have an Internet
connection
> > to Sun's site and to BEA's site, the applications don't start. At least
on
> > my site. I was just wondering if others have found this and what they do
to
> > fix the problem.
> >
>
> Well if the problem is not related to Ant, then you may have better luck
> asking on an EJB forum or mailing list.
>
> One simple way would be to put the dtd's on a local (internal) web
> server & reference the local url from the deployment descriptor.

or just paste it straight into the XML; I've done that before now.

-steve


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




Re: Where is Antidote?

2002-02-05 Thread Steve Holdener

Diane Holt wrote:

 
> http://cvs.apache.org/viewcvs/jakarta-ant/src/antidote/


Okay, to CVS I go, I s'pose.  Thank you.


-Steve


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




Re: Critique my optional file copy target, please?

2002-02-05 Thread Scott Ellsworth


On Tuesday, February 5, 2002, at 09:00  AM, Scott Ellsworth wrote:

> On Tuesday, February 5, 2002, at 02:47  AM, Stefan Bodewig wrote:
>
>> On Mon, 4 Feb 2002, Scott Ellsworth <[EMAIL PROTECTED]> wrote:
>>
>>> 
>>>
>>
>> wouldn't that delete the "new" sources that follow your new layout or 
>> is  a shortcut for a task that knows which files to delete and 
>> which to leave alone?
>
> The copy.needed property should only be set for the old sources.

Regrettable, my original copy-setup task was written as:


   
   
   


which sets the property copy.needed only if src and compile.src were the 
same.  This is exactly the case where we do NOT want such a beast set.

Thus, Stefan was right in the original letter, and this should either be 
wrapped with a not tag:


   
 
   
 
   


and the copy target used as written, or the copy-setup target should not 
be changed, but the property should be named "copy.superfluous", and the 
copy target should be written



   


In other words, the assumption

> Assuming my copy-setup target properly does not set it for projects in 
> the new layout, the entire copy target will not happen for a new layout 
> project because of the if.

was exactly backwards.

Thanks for the warning - I would not have been happy hunting through my 
empty directories for my source ;-) .

Scott


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




Re: very minor issue.

2002-02-05 Thread Diane Holt

It's fixed in CVS.

Diane


=
([EMAIL PROTECTED])



__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




very minor issue.

2002-02-05 Thread Jeffrey Jensen

I noticed behavior that seems incorrect with fail, however in a very
minor way (I leave it to the experts to determine and change!):


 
works as advertised - displays ":: No
message".



works as advertised - displays ":: The fail
message".



  The fail message.

basically works as advertized, but with a twist: because "message=" has
no value, the word null displays in its place - displays:
:: null
  The fail message.



  The fail message.

works as advertised and prevents display of the null word.


Again this is very minor.  I mention it because those with less
expertise are thrown by the null word in the error message (a Red
Herring!  and it was an accidental pun!).


Thanks for an awesome product!!

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




Re: ERROR using ant style task with Xalan-J 2.2!!!! Why does nobodyanswer????

2002-02-05 Thread Frank E. Weiss

Have you copyied the following three files from the Xalan-j bin directory to the Ant 
lib directory?

xalan.jar, xerces.jar, xml-apis.jar


Spielmann Urban wrote:

> Hello
>
> I have problems to use the style task with Xalan-J2.2.
> When I build with the following statement:
> classpath="${steplet.classpath.global}"
>processor="xalan"
>style="CreateGraph.xsl"
>in="StepletConfigfile.xml">
> 
> 
>
> I get the error:
> style
> java.lang.NoClassDefFoundError: org/apache/xalan/xslt/XSLTProcessorFactory
> java.lang.NoClassDefFoundError: org/apache/xalan/xslt/XSLTProcessorFactory
>
> When I set "trax" instead of "xalan" for the processor attribute I get the
> error:
> style
> javax.xml.transform.TransformerFactoryConfigurationError: Provider
> org.apache.xalan.processor.TransformerFactoryImpl not found
> javax.xml.transform.TransformerFactoryConfigurationError: Provider
> org.apache.xalan.processor.TransformerFactoryImpl not found
>
> What do I wrong?
>
> Thanks for any help!
>
> Best regards,
> Urban
>
> >>> Rentenanstalt/Swiss Life - Official Partner Expo.02 <<<
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




Re: Can someone who knows the innards of ejbjar...

2002-02-05 Thread Jesse Stockall

On Tue, 2002-02-05 at 16:34, [EMAIL PROTECTED] wrote:

> Yes, I understand that. But once the application is deployed, ant is no
> longer involved. Ant at that point, if *I* don't have an Internet connection
> to Sun's site and to BEA's site, the applications don't start. At least on
> my site. I was just wondering if others have found this and what they do to
> fix the problem.
> 

Well if the problem is not related to Ant, then you may have better luck
asking on an EJB forum or mailing list.

One simple way would be to put the dtd's on a local (internal) web
server & reference the local url from the deployment descriptor.

-- 
 Jesse Stockall |   Tel: 1+ 613.599.2441 ext. 243
 CRYPTOCard Corporation |   Fax: 1+ 613.599.2442
 Suite 304, 300 March Rd.   |   email: [EMAIL PROTECTED]
 Ottawa, ON, Canada K2K 2E2 |   web: www.cryptocard.com 
-


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




Re: Can someone who knows the innards of ejbjar...

2002-02-05 Thread lduperval

On  5 Feb, Jesse Stockall wrote:
> On Tue, 2002-02-05 at 13:52, [EMAIL PROTECTED] wrote:
>> ...tell me what part of the task produces this error message:
>> 
>>  Could not resolve ( publicId: -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 
>2.0//EN, systemId: http://java.sun.com/dtd/ejb-jar_2_0.dtd) to a local entity
>> 
> 
> You need to add something similar to the following
> 
>location="${dtd}/ejb-jar_1_1.dtd"/>
>location="${dtd}/ejb-inprise.dtd"/>
> 
> So that ant can find a local copy of the DTD.
> 

Yes, I understand that. But once the application is deployed, ant is no
longer involved. Ant at that point, if *I* don't have an Internet connection
to Sun's site and to BEA's site, the applications don't start. At least on
my site. I was just wondering if others have found this and what they do to
fix the problem.

L

-- 
Laurent Duperval 

"Je ne vais tout de même pas les appeler les tabarnacos."
-Jacques Parizeau



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




Re: Where is Antidote?

2002-02-05 Thread Diane Holt

--- Steve Holdener <[EMAIL PROTECTED]> wrote:
> Does anyone know how I can get Antidote?  I played with this tool a bit 
> back in 1.3, but it seems to have disappeared from the Ant source tree. 

http://cvs.apache.org/viewcvs/jakarta-ant/src/antidote/

Diane

=
([EMAIL PROTECTED])



__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




Where is Antidote?

2002-02-05 Thread Steve Holdener

Does anyone know how I can get Antidote?  I played with this tool a bit 
back in 1.3, but it seems to have disappeared from the Ant source tree. 
  The CVS logs suggest to me that it's a separate project, but it 
doesn't show up anywhere else on the jakarta site.  Perhaps it's 
unstable enough that the development team doesn't want to risk people 
corrupting their buildfiles with it. (?)  Any help would be appreciated.

Thanks.


-Steve


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




RE: vssget appears to work but task fails

2002-02-05 Thread Blair Jennings

Is your VSS Db out on a network share? I get this problem sometimes because
the network drops the connection before VSS is actually done.

-Original Message-
From: Bill Pfeiffer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 12:56 PM
To: Ant Users List
Subject: Re: vssget appears to work but task fails


There are definitely multiple files checked out to other users as well as
myself, but I am performing the get into an empty directory structure.   Do
you think this is the cause?

Thanks again,

Bill
- Original Message -
From: "Nico Seessle" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 05, 2002 3:03 PM
Subject: Re: vssget appears to work but task fails


> - Original Message -
> From: "Bill Pfeiffer" <[EMAIL PROTECTED]>
> To: "Ant Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, February 05, 2002 2:18 PM
> Subject: Re: vssget appears to work but task fails
>
>
> > I am getting 100 as an errorlevel, but all appears well. Is there anyway
> to
> > get more info?
> >
>
> The help (MS VSS help) is not very good at this point. All it says is that
>
> "100 : Something went wrong. For example, VSS could not find its data
files,
> or a file you want to check out is already checked out. "
>
> Is anything mentioned here is true in your case?
>
> Nico
>
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>



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



RE: ERROR using ant style task with Xalan-J 2.2!!!! Why does nobody a nswer????

2002-02-05 Thread Hunt, Bryan



put xalan.jar and bsf.jar in the ant libs directory 

-Original Message-
From: Spielmann Urban [mailto:[EMAIL PROTECTED]]
Sent: 05 February 2002 15:44
To: '[EMAIL PROTECTED]'
Subject: ERROR using ant style task with Xalan-J 2.2 Why does nobody
a nswer


Hello

I have problems to use the style task with Xalan-J2.2.
When I build with the following statement:




I get the error:
style
java.lang.NoClassDefFoundError: org/apache/xalan/xslt/XSLTProcessorFactory
java.lang.NoClassDefFoundError: org/apache/xalan/xslt/XSLTProcessorFactory

When I set "trax" instead of "xalan" for the processor attribute I get the
error:
style
javax.xml.transform.TransformerFactoryConfigurationError: Provider
org.apache.xalan.processor.TransformerFactoryImpl not found
javax.xml.transform.TransformerFactoryConfigurationError: Provider
org.apache.xalan.processor.TransformerFactoryImpl not found

What do I wrong?

Thanks for any help!

Best regards,
Urban




>>> Rentenanstalt/Swiss Life - Official Partner Expo.02 <<<

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

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




RE: cvs client

2002-02-05 Thread Hunt, Bryan

that should be path rather than classpath. Classpath is only to specify to 
java interpreter where to find class files.

--B

-Original Message-
From: Sharanya Vemu [mailto:[EMAIL PROTECTED]]
Sent: 05 February 2002 14:51
To: 'Ant Users List'
Subject: RE: cvs client


ant has a cvs task in built and it needs to  have cvs in classpath (the
regular command line cvs client)

-Original Message-
From: C Santosh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 9:46 AM
To: [EMAIL PROTECTED]
Subject: cvs client


Which cvs client does Ant use? Does it have one of its own?

Santosh

--
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: vssget appears to work but task fails

2002-02-05 Thread Bill Pfeiffer

There are definitely multiple files checked out to other users as well as
myself, but I am performing the get into an empty directory structure.   Do
you think this is the cause?

Thanks again,

Bill
- Original Message -
From: "Nico Seessle" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 05, 2002 3:03 PM
Subject: Re: vssget appears to work but task fails


> - Original Message -
> From: "Bill Pfeiffer" <[EMAIL PROTECTED]>
> To: "Ant Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, February 05, 2002 2:18 PM
> Subject: Re: vssget appears to work but task fails
>
>
> > I am getting 100 as an errorlevel, but all appears well. Is there anyway
> to
> > get more info?
> >
>
> The help (MS VSS help) is not very good at this point. All it says is that
>
> "100 : Something went wrong. For example, VSS could not find its data
files,
> or a file you want to check out is already checked out. "
>
> Is anything mentioned here is true in your case?
>
> Nico
>
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>



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




Re: Building RPMs under Windows

2002-02-05 Thread Emir Alikadic

On 02/05/2002 03:33 PM, Mark Derricutt wrote:

>Is it possible to use the RPM task under windows at all?
>

Of course! All you have to do is build RPM under Windows, or get a 
pre-compiled Win32 RPM binary...


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




Building RPMs under Windows

2002-02-05 Thread Mark Derricutt

Is it possible to use the RPM task under windows at all?

-- \m/ --
  "...if I seem super human I have been misunderstood." (c) Dream Theater
 [EMAIL PROTECTED] - ICQ: 1934853 JID: [EMAIL PROTECTED]


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




Re: test environment variable and if statement

2002-02-05 Thread Erik Hatcher

Ant carries around two collections of properties.

Properties from -D/-propertyfile are immutable (even moreso than they should
be in the  case, I think).  For some reason these are called "user"
properties (I guess because the user set them specifically).

Properties set with  are mostly immutable, but can be overridden
using an  backdoor (and I believe ), and also with
/.  These are just regular propeties, no special name for this
class of them.

I may have misspoke this somewhat as I have to continuously refresh my
memory on the caveats of the immutability since I've refused to ingrain such
confusing things into memory!  :)   Corrections to this are more than
welcome.

Erik


- Original Message -
From: "Michael J McGonagle" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 05, 2002 3:12 PM
Subject: Re: test environment variable and if statement


> Erik Hatcher wrote:
> >
> > Also, just for the record :), properties set from the command-line are
not
> > quite equivalent to properties set from .  -D
> > properties (and now -propertyfile ones) are more(?) immutable.
>
> That is quite a large cat to just let out of the bag without
> explaination, especially for us newbies.
>
> What do you mean by "more(?) immutable".
>
>
> Mike
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




Re: test environment variable and if statement

2002-02-05 Thread Michael J McGonagle

Erik Hatcher wrote:
> 
> Also, just for the record :), properties set from the command-line are not
> quite equivalent to properties set from .  -D
> properties (and now -propertyfile ones) are more(?) immutable.

That is quite a large cat to just let out of the bag without
explaination, especially for us newbies.

What do you mean by "more(?) immutable".


Mike

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




Re: Ant 1.5, JDepend task doesn't support the "format" attribute

2002-02-05 Thread Peter Donald


Looks like you are not using the latest version of ant? Could you have set 
ANT_HOME to an old version or somehow be using old version of script?

On Wed, 6 Feb 2002 00:09, Chuck Stern wrote:
> Hi,
>
> I'm trying to use the jdepend task with the latest build (1.5 alpha) ant
> the latest optional.jar.  I'm getting the following error message:
>
>   The  task doesn't support the "format" attribute.
>
> My task looks like this:
> 
> 
> 
>
>  format="xml">
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> The docs say this should work and I see the format definition in the
> source. Any ideas?
>
> Thanks,
> Chuck

-- 
Cheers,

Pete

*--*
| "Computers are useless. They can only give you   |
|answers." - Pablo Picasso |
*--*

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




Re: vssget appears to work but task fails

2002-02-05 Thread Nico Seessle

- Original Message -
From: "Bill Pfeiffer" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 05, 2002 2:18 PM
Subject: Re: vssget appears to work but task fails


> I am getting 100 as an errorlevel, but all appears well. Is there anyway
to
> get more info?
>

The help (MS VSS help) is not very good at this point. All it says is that

"100 : Something went wrong. For example, VSS could not find its data files,
or a file you want to check out is already checked out. "

Is anything mentioned here is true in your case?

Nico




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




RE: File copy problem

2002-02-05 Thread Diane Holt

--- "Shvartsburd, Feliks" <[EMAIL PROTECTED]> wrote:
> I'm going to write my own task. It drove me crazy.  Thanks for the
> support
> :))

Well, that's certainly one way to do it -- but it seems like kind of a
long way around, especially given that I sent you a target yesterday that
does what you want.

Have fun,
Diane

=
([EMAIL PROTECTED])



__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




RE: mimeMail task

2002-02-05 Thread Andrew.Beacock

Bryan,

> The file that I want to send definitely exists but the 
> contents of the email
> when I receive it are as follows .



> and thats it. Is there any known bug in the mimeMail task ?

If I remember correctly I had the same problem a while ago, you 
specify the messageFile but it's not attached.  It's not a bug 
(I think ;) ).

This is what I found solves it, and as an added bonus you can use 
it to attached the build.xml, junit.xml results (if ever needed) 
and also attach the build.log along with other files.








The important bit is the  to include the file that you want 
to be the messageFile.

Hope that sorts things out, if not, drop a message to the list and 
I'll see if I can recreate the problem.

Andy.

--
Andrew Beacock
Senior Software Engineer/Project Lead
Nokia Mobile Phones
NMP/MSW/SSP/AG

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




RE: File copy problem

2002-02-05 Thread Jon Skeet

>  I need to do the following thing:
> >
> > 1. Copy .zip file to target directory and change its name in target
> > location.
> > Problem is that file name that I need to copy is not 
> > static. It changes
> > appending timestamp to it. All I know that there is only 
> > one single .zip
> > file in that location. Does anyone have an idea how to do that?

Right. One way I can imagine it could work would be to use a mapper:


  
  


Jon

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




RE: File copy problem

2002-02-05 Thread Shvartsburd, Feliks

 I need to do the following thing:
>
> 1. Copy .zip file to target directory and change its name in target
> location.
> Problem is that file name that I need to copy is not static. It changes
> appending timestamp to it. All I know that there is only one single .zip
> file in that location. Does anyone have an idea how to do that?
> Thanks

-Original Message-
From: Jon Skeet [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 11:17 AM
To: Ant Users List
Subject: RE: File copy problem


> I'm going to write my own task. It drove me crazy.  Thanks 
> for the support
> :))

What do you actually want it to do? If you want to create a zip file which
contains all the files specified, you need to use the zip task rather than
the copy task.

Jon

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

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




Re: Can someone who knows the innards of ejbjar...

2002-02-05 Thread Jesse Stockall

On Tue, 2002-02-05 at 13:52, [EMAIL PROTECTED] wrote:
> ...tell me what part of the task produces this error message:
> 
>  Could not resolve ( publicId: -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 
>2.0//EN, systemId: http://java.sun.com/dtd/ejb-jar_2_0.dtd) to a local entity
> 

You need to add something similar to the following




So that ant can find a local copy of the DTD.

-- 
 Jesse Stockall |   Tel: 1+ 613.599.2441 ext. 243
 CRYPTOCard Corporation |   Fax: 1+ 613.599.2442
 Suite 304, 300 March Rd.   |   email: [EMAIL PROTECTED]
 Ottawa, ON, Canada K2K 2E2 |   web: www.cryptocard.com 
-


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




RE: File copy problem

2002-02-05 Thread Jon Skeet

> I'm going to write my own task. It drove me crazy.  Thanks 
> for the support
> :))

What do you actually want it to do? If you want to create a zip file which contains 
all the files specified, you need to use the zip task rather than the copy task.

Jon

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




RE: File copy problem

2002-02-05 Thread Shvartsburd, Feliks

I'm going to write my own task. It drove me crazy.  Thanks for the support
:))
 
-Original Message-
From: Diane Holt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 11:10 AM
To: Ant Users List
Subject: RE: File copy problem


--- "Shvartsburd, Feliks" <[EMAIL PROTECTED]> wrote:
> I use this, and I think since this thinks that there are many files it
> fails. Is that the case?
> 
> target name="copyBuild">
> 
>   
>   
>   
>   

Yes. Don't do it that way. If you're using 'tofile', you need to specify a
single file to copy from.

Diane

=
([EMAIL PROTECTED])



__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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

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




RE: File copy problem

2002-02-05 Thread Diane Holt

--- "Shvartsburd, Feliks" <[EMAIL PROTECTED]> wrote:
> I use this, and I think since this thinks that there are many files it
> fails. Is that the case?
> 
> target name="copyBuild">
> 
>   
>   
>   
>   

Yes. Don't do it that way. If you're using 'tofile', you need to specify a
single file to copy from.

Diane

=
([EMAIL PROTECTED])



__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




Can someone who knows the innards of ejbjar...

2002-02-05 Thread lduperval

...tell me what part of the task produces this error message:

 Could not resolve ( publicId: -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 
2.0//EN, systemId: http://java.sun.com/dtd/ejb-jar_2_0.dtd) to a local entity

I'm trying to debug the problem where the ejbjar task doesn't find the DTD
for some of the tasks. Is it produced by something internal to ant? The
reason I'm asking is that I'm trying to pinpoint the exact cause of the
problem with the folks at BEA. What they've told me is to compile the
examples they have and to see if it causes the same problem, which it
doesn't. There are two differences between the examples and our stuff: in
the examples, they use a custom  task while we use . ALso,
they use weblogic.ejbc instead of ejbc20. The seccond difference, though,
doesn't seem to affect anything.

I would also like to know, for those who have found it necessary to use the
 option in the : did you need to change the SYSTEM id of the
DOCTYPE declaration? We've found that even if we add the  option, if we
don't have an Internet connection, our applications will not start.

Thanks,

L
 
-- 
Laurent Duperval 

Why is it that when you're driving and looking for an address, you turn
down the volume on the radio?



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




Re: File copy problem

2002-02-05 Thread Diane Holt

--- "Shvartsburd, Feliks" <[EMAIL PROTECTED]> wrote:
> WHen I want to copy a file using  tofile="F:/cmkserver_${label}.zip"> I get this error.
> 
> C:\dev\QA\build\qabuild.xml:151: Cannot concatenate multple files into a
> single file.

How are you specifying the name of the file you're copying?

Diane

=
([EMAIL PROTECTED])



__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




RE: File copy problem

2002-02-05 Thread Shvartsburd, Feliks

I use this, and I think since this thinks that there are many files it
fails. Is that the case?

target name="copyBuild">
  





-Original Message-
From: Diane Holt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 10:44 AM
To: Ant Users List
Subject: Re: File copy problem


--- "Shvartsburd, Feliks" <[EMAIL PROTECTED]> wrote:
> WHen I want to copy a file using  tofile="F:/cmkserver_${label}.zip"> I get this error.
> 
> C:\dev\QA\build\qabuild.xml:151: Cannot concatenate multple files into a
> single file.

How are you specifying the name of the file you're copying?

Diane

=
([EMAIL PROTECTED])



__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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

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




File copy problem

2002-02-05 Thread Shvartsburd, Feliks

WHen I want to copy a file using  I
get this error.

C:\dev\QA\build\qabuild.xml:151: Cannot concatenate multple files into a
single file.
at
org.apache.tools.ant.taskdefs.Copy.validateAttributes(Copy.java:290)
at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:217)
at org.apache.tools.ant.Task.perform(Task.java:217)
at org.apache.tools.ant.Target.execute(Target.java:184)
at org.apache.tools.ant.Target.performTasks(Target.java:202)
at org.apache.tools.ant.Project.executeTarget(Project.java:601)
at org.apache.tools.ant.Project.executeTargets(Project.java:560)
at org.apache.tools.ant.Main.runBuild(Main.java:454)
at org.apache.tools.ant.Main.start(Main.java:153)
at org.apache.tools.ant.Main.main(Main.java:176)

What's wrong?
thanks


-Original Message-
From: Erik Hatcher [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 6:54 PM
To: Ant Users List
Subject: Re: test environment variable and if statement


Oops correction switch the order of two lines:

 
 
 
 

 

And, if its not specified in -D, environment, or build.properties then it
will be set to literally "${env.HELPER_JAR}" in this scheme.

- Original Message -
From: "Erik Hatcher" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 04, 2002 9:30 PM
Subject: Re: test environment variable and if statement


>
> - Original Message -
> From: "Diane Holt" <[EMAIL PROTECTED]>
> > But you don't really want to rely on environment variables that are just
> > (supposedly) set, do you?  IMO, that's even scarier than hard-coding
full
> > paths in the build-file (which I'm also not altogether for, but it's
> > better than going with env vars -- unless they're set in a file
somewhere
> > that's source-controlled).
>
> Fine then!  :)
>
> 
> 
> 
> 
>   
> 
>
> Where build.properties is platform-specific, if you like.  Or load by
> machine name (and yes, you can get a common property for the machine name
> using a couple of tricks too) 
> so that you can have them all under source code control and such.  (BTW,
> Gump uses machine name for its workspace setting).
>
> So, in the above, helper.jar can be defined in this order: -D,
environment,
> or build.properties, whichever defines it first of those.
>
> Erik
>
>
>
> --
> 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: passing a Collection as paramater

2002-02-05 Thread Erik Hatcher

No, that won't do it.  I'm not sure what the simplest task is to look at
that takes this construct, but there are many so just dig into Ant's
source code and look at similar tasks.  I could give you the answer, but
that'd be no fun!  (but then I'd have to go dig it up and cut and paste it
too)


- Original Message -
From: "Marchioni Francesco" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, February 05, 2002 12:54 PM
Subject: RE: passing a Collection as paramater


hi thanks Erik...I'll check
maybe mapping the parameter "url" as "Collection" in my Task will do the
trick
thanks
Francesco

-Original Message-
From: Erik Hatcher [mailto:[EMAIL PROTECTED]]
Sent: martedì 5 febbraio 2002 18.57
To: Ant Users List
Subject: Re: passing a Collection as paramater


Use this kind of syntax:

  

.
.
.

  

Check Ant's source code for similar syntaxed tasks for the implementation
details.

Erik

- Original Message -
From: "Marchioni Francesco" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 05, 2002 12:41 PM
Subject: passing a Collection as paramater


> Hi all,
> I'd like to know if it's possible to pass a Collection of parameters to my
> Own Task.
> At the moment I need to pass a list or urls to the Task in this way..
>
> http://."/>
> http://."/>
> http://."/>
>
>   
>
>  
>
> ...but as the url can grow up I'd rather find a way to pass a Collection
of
> elements
> to the bean. Does anybody know how to do it?
> Thanks
> Francesco
>
>
> --
> 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: passing a Collection as paramater

2002-02-05 Thread Marchioni Francesco

hi thanks Erik...I'll check
maybe mapping the parameter "url" as "Collection" in my Task will do the
trick
thanks
Francesco

-Original Message-
From: Erik Hatcher [mailto:[EMAIL PROTECTED]]
Sent: martedì 5 febbraio 2002 18.57
To: Ant Users List
Subject: Re: passing a Collection as paramater


Use this kind of syntax:

  

.
.
.

  

Check Ant's source code for similar syntaxed tasks for the implementation
details.

Erik

- Original Message -
From: "Marchioni Francesco" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 05, 2002 12:41 PM
Subject: passing a Collection as paramater


> Hi all,
> I'd like to know if it's possible to pass a Collection of parameters to my
> Own Task.
> At the moment I need to pass a list or urls to the Task in this way..
>
> http://."/>
> http://."/>
> http://."/>
>
>   
>
>  
>
> ...but as the url can grow up I'd rather find a way to pass a Collection
of
> elements
> to the bean. Does anybody know how to do it?
> Thanks
> Francesco
>
>
> --
> 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: newbie ant user: creating a skeleton build.xml?

2002-02-05 Thread stephan beal

On Tuesday 05 February 2002 18:47 pm, Steve wrote:
> > The bit about adding the filenames to the file - but i must admit that i
> am *assuming* that that's part of the process (i was weened on make, 
>> so my mind-set is probably a bit broken when it comes to ant). 
>> i'd be happy to be  wrong!
>
> you're wrong :)

Thank goodness! ;)

> you just need all your classes in a directory tree which matches your app,
> say de.einsurance.myproject.{model,view,controller}
>
> point ant at the tree and all your files get dealt with automatically.

whew! i was not looking forward to maintaing a list of files which changes 
every day.

> Unless you really want to list every file by name.

Not particularly. i'm used to make constructs like this:
CLASSES := $(patsubst %.java,%,$(wildcard *.java))

> Same for classpath import, "*.jar" adds all jar files in a directory to the
> classpath, which is often useful during compilation too, though a more
> rigorous dev process does tend to name each jar they use instead.

Yeah, we've found the hard way that we have to reference jars by name, due to 
different versions used in different products :/.

Thanks very much for your tips! i think i can take it from there! i was 
overcomplicating the whole matter, still thinking in terms of one makefile 
per subdir.

see ya!

- stephan
Generic Universal Computer Guy
[EMAIL PROTECTED] - http://www.einsurance.de
Office: +49 (89)  552 92 862 Handy:  +49 (179) 211 97 67
This email is encrypted with ROT26 encoding. Decoding it
is in violation of the Digital Millenium Copyright Act.




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




Re: passing a Collection as paramater

2002-02-05 Thread Erik Hatcher

Use this kind of syntax:

  

.
.
.

  

Check Ant's source code for similar syntaxed tasks for the implementation
details.

Erik

- Original Message -
From: "Marchioni Francesco" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 05, 2002 12:41 PM
Subject: passing a Collection as paramater


> Hi all,
> I'd like to know if it's possible to pass a Collection of parameters to my
> Own Task.
> At the moment I need to pass a list or urls to the Task in this way..
>
> http://."/>
> http://."/>
> http://."/>
>
>   
>
>  
>
> ...but as the url can grow up I'd rather find a way to pass a Collection
of
> elements
> to the bean. Does anybody know how to do it?
> Thanks
> Francesco
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




passing a Collection as paramater

2002-02-05 Thread Marchioni Francesco

Hi all,
I'd like to know if it's possible to pass a Collection of parameters to my
Own Task.
At the moment I need to pass a list or urls to the Task in this way..

http://."/>
http://."/>
http://."/>

  



...but as the url can grow up I'd rather find a way to pass a Collection of
elements
to the bean. Does anybody know how to do it?
Thanks
Francesco


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




Re: Fwd: newbie ant user: creating a skeleton build.xml?

2002-02-05 Thread Diane Holt

--- stephan beal <[EMAIL PROTECTED]> wrote:
> i'm a complete newbie to ant, but not a newbie user. i've just been
> given the task (no pun intented) of converting our company's make-based
> builds into ant (~2500 classes in 500-some-odd packages). i've searched
> high and low and can find no tool for generating a skeleton build.xml
> for an existing dir structure. i refuse to believe that developers
> actually create that stuff from scratch by hand all the time...

Are you looking to actually replace all your makefiles with Ant build.xml
files? Unless you have some weird complicated build process (like I did,
and yes, I did automate the buildfile-creation first-pass, but it was just
a command-line script -- for ii in ...), you shouldn't actually need to do
that, and it's not really the usual Ant approach, which tends more toward
a single top-level buildfile, using wildcards and filesets.

Diane

=
([EMAIL PROTECTED])



__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




Re: newbie ant user: creating a skeleton build.xml?

2002-02-05 Thread Steve Loughran


- Original Message -
From: "stephan beal" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>; "Jon Skeet"
<[EMAIL PROTECTED]>
Sent: Tuesday, February 05, 2002 09:34
Subject: Re: newbie ant user: creating a skeleton build.xml?


> On Tuesday 05 February 2002 18:28 pm, Jon Skeet wrote:
> > > i'm a complete newbie to ant, but not a newbie user. i've
> > > just been given the
> > > task (no pun intented) of converting our company's make-based
> > > builds into ant
> > > (~2500 classes in 500-some-odd packages). i've searched high
> > > and low and can
> > > find no tool for generating a skeleton build.xml for an existing dir
> > > structure.
> >
> > Why should you need to? If your existing directory structure is
> > appropriate, you can have one short build file that builds everything.
> >
> > Which bit did you expect to be complicated?
>
> The bit about adding the filenames to the file - but i must admit that i
am
> *assuming* that that's part of the process (i was weened on make, so my
> mind-set is probably a bit broken when it comes to ant). i'd be happy to
be
> wrong!

you're wrong :)

you just need all your classes in a directory tree which matches your app,
say de.einsurance.myproject.{model,view,controller}

point ant at the tree and all your files get dealt with automatically.
Unless you really want to list every file by name.

Same for classpath import, "*.jar" adds all jar files in a directory to the
classpath, which is often useful during compilation too, though a more
rigorous dev process does tend to name each jar they use instead.

-steve



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




How to set global options for java task in ejbjar?

2002-02-05 Thread lduperval

Hi,

Is there a way to set global options for java tasks, specifically, the ones
run from withing an ejbjar task? Specifically, for some reason, my java
tasks have started segfaulting. I need to pass the "-classic" flag to (at
least) all the java tasks run within an ejbjar task.

Is there a standard way to to this? I don't feel like modifying each of my
build files.

Thanks,

L

-- 
Laurent Duperval 

Au lieu de tenir des propos teintés de paresse mélangée de fainéantise de
couleur assortie, introduisez une plaque de métal dans l'appareil.
  -Léonard le génie


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




Re: newbie ant user: creating a skeleton build.xml?

2002-02-05 Thread stephan beal

On Tuesday 05 February 2002 18:28 pm, Jon Skeet wrote:
> > i'm a complete newbie to ant, but not a newbie user. i've
> > just been given the
> > task (no pun intented) of converting our company's make-based
> > builds into ant
> > (~2500 classes in 500-some-odd packages). i've searched high
> > and low and can
> > find no tool for generating a skeleton build.xml for an existing dir
> > structure.
>
> Why should you need to? If your existing directory structure is
> appropriate, you can have one short build file that builds everything.
>
> Which bit did you expect to be complicated?

The bit about adding the filenames to the file - but i must admit that i am 
*assuming* that that's part of the process (i was weened on make, so my 
mind-set is probably a bit broken when it comes to ant). i'd be happy to be 
wrong!

Thanks for the quick response!

- stephan
Generic Universal Computer Guy
[EMAIL PROTECTED] - http://www.einsurance.de
Office: +49 (89)  552 92 862 Handy:  +49 (179) 211 97 67
This email is encrypted with ROT26 encoding. Decoding it
is in violation of the Digital Millenium Copyright Act.




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




RE: newbie ant user: creating a skeleton build.xml?

2002-02-05 Thread Jon Skeet

> i'm a complete newbie to ant, but not a newbie user. i've 
> just been given the
> task (no pun intented) of converting our company's make-based 
> builds into ant
> (~2500 classes in 500-some-odd packages). i've searched high 
> and low and can
> find no tool for generating a skeleton build.xml for an existing dir
> structure.

Why should you need to? If your existing directory structure is appropriate, you can 
have one short build file that builds everything.

Which bit did you expect to be complicated?

Jon

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




Fwd: newbie ant user: creating a skeleton build.xml?

2002-02-05 Thread stephan beal

Hello, anters,

i'm a complete newbie to ant, but not a newbie user. i've just been given the
task (no pun intented) of converting our company's make-based builds into ant
(~2500 classes in 500-some-odd packages). i've searched high and low and can
find no tool for generating a skeleton build.xml for an existing dir
structure. i refuse to believe that developers actually create that stuff
from scratch by hand all the time...

i tried out antidote (CVS version, as of this afternoon), but it (apparently)
doesn't offer a way of building a skeleton build.xml.

So, my quesions:
a) is there a tool for this?
b) where is it? i keep running into dead ends and "obscure hints with no
hyperlinks" in all of the docs i've come across so far.

i don't mind writing such a tool, i just find it hard to believe that
nobody's done this yet, and even harder to believe that i can't find a
reference to it.

i'm hoping that this question is like the question "how do i set up a CVS
server?" and that the answer is simply so simple that nobody has ever
bothered to document it anywhere.

(PS: i'm a typical lazy programmer who refuses to do by hand what a computer
can be coerced into to doing for me. :)

Thanks very much in advance, and take care,

- stephan
Generic Universal Computer Guy
[EMAIL PROTECTED] - http://www.einsurance.de
Office: +49 (89)  552 92 862 Handy:  +49 (179) 211 97 67
This email is encrypted with ROT26 encoding. Decoding it
is in violation of the Digital Millenium Copyright Act.

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




Re: Critique my optional file copy target, please?

2002-02-05 Thread Scott Ellsworth


Hi, Stefan.  Thank you for the commentary and critique.

On Tuesday, February 5, 2002, at 02:47  AM, Stefan Bodewig wrote:

> On Mon, 4 Feb 2002, Scott Ellsworth <[EMAIL PROTECTED]> wrote:
>
>> One way to do this is to sent compile.scr to the same as src, and to 
>> make the copy phase only do the delete and copy if it actually needs 
>> to.
>
>> 
>>
>
> wouldn't that delete the "new" sources that follow your new layout or 
> is  a shortcut for a task that knows which files to delete and 
> which to leave alone?

The copy.needed property should only be set for the old sources.  
Assuming my copy-setup target properly does not set it for projects in 
the new layout, the entire copy target will not happen for a new layout 
project because of the if.  Thus, for new sources, the deletion of the 
directory will not happen, but for old sources, the entire 
compile.source directory (into which I copied the contents of the src 
directory) will vanish and be recopied.

>> 1.  Would it be better to do
>> 
>> as then the no other target needs to be changed?
>
> I think so - especially since the if attribute doesn't make any sense
> unless the copy-setup target has been run, there is a logical
> dependency between these two targets - much stronger than between your 
> copy-setup and the compile target IMHO.

Makes sense.  I just wanted to make sure that it will check the if= part 
to decide whether to perform the copy target AFTER running the 
copy-setup target.

>> 2.  Is this the best way to handle this situation where two
>> different layouts exist, and I really want to use the same set of
>> targets for both layouts?
>
> I don't think so - some creative use of multiple  elements in
>  or two separate s together with includes on the  
> task(s) seems better to me - don't copy sources at all.

I cannot avoid a copy with the old layout, I believe, if I want javac to 
only compile the sources I tell it to, and not others in the same com 
tree.

The "src" property is set to the for-real sources both when the build 
files are in the source tree among the java files (old layout), and when 
they are separate (new layout).

A copy files task is needed with the old layout to prevent "why does ant 
recompile all of my source files" and to prevent it from finding classes 
I do not want it to.  Under the old layout, if someone happened to 
import a file they were not supposed to under the same com tree, javac 
would go find it.  This is normally what you want, but in this case, I 
do not.

The right solution is the new layout, but it will take a while to 
transition.  Of course, someone could add a package they are not 
supposed to with the new layout as well, but we are pretty aggressive 
about preventing that, and it is easier to spot.

Thanks again, Stefan, as making ant happy was one of the drivers for 
this transition.

Scott


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




Re: as a source for ?

2002-02-05 Thread Bill Winspur

Thanks Diane, neat idea. I had not thought of the script tag, Bill.
- Original Message -
From: "Diane Holt" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 05, 2002 12:45 AM
Subject: Re: as a source for  ?


> --- Bill Winspur <[EMAIL PROTECTED]> wrote:
> > Actually, having all the libs in one directory was my first workaround,
>
> I meant, if all the files you need to copy come from subdirs relative to
> one directory -- they didn't need to all be in the same directory, just
> relative to one.
>
> > For now my technique of a limited number of library-location properites
> > is working, but I may have time to make a version of Fileset that takes
> > a files="path1,path2.." attribute,
>
> You can already do that -- except the attribute is 'includes' -- but only
> if the files listed are relative to the directory specified in the
> 's 'dir' attribute, not full paths. I'm not sure how you could
> modify  to take a list of full-path filenames, or whether it'd
> even be appropriate -- but you could probably modify  to take a list
> of files rather than either just a single file or a fileset.
>
> In the meantime, as a workaround for if/when that modification gets done,
> you could use the  task to take apart a comma-separated value of a
> property and do the copies that way. Eg:
>   
>