Re: javac in multiple threads?

2002-09-27 Thread Steve Loughran


- Original Message -
From: "Mr. Tomcat" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Saturday, September 28, 2002 04:01
Subject: javac in multiple threads?


> As of 1.4.1, javac is now threadsafe.

so they say. New GCs too.

>  Does Ant (as of 1.5) support
> multiple compilation threads?

no, unless you hand code  stuff

> If it did, a dual-CPU machine might be
> able to compile almost twice as fast using ant, which would be cool of
> course, and which might influence me to get a dewlie for my next desktop
> machine.

multi cpus are invaluable for finding race stuff in server side code; you
can get a bit over 1 cpu flat out (say 100% and 20%) with file IO on cpu#2
today.


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




javac in multiple threads?

2002-09-27 Thread Mr. Tomcat

As of 1.4.1, javac is now threadsafe.  Does Ant (as of 1.5) support
multiple compilation threads?  If it did, a dual-CPU machine might be
able to compile almost twice as fast using ant, which would be cool of
course, and which might influence me to get a dewlie for my next desktop
machine.



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




problems with chmod

2002-09-27 Thread Jennifer Moter

I'm having problems making a shell script executable:
  

doesn't do anything. Since this is a direct copy from the online docs,
I was pretty sure it would work.  
I'm using ant 1.5RC1 with cpptasks.jar version 1.0b

Does anyone know of a fix for this task?

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




Re: newbie question: start an asynch process

2002-09-27 Thread otisg

Lok at , but it's got some
restrictions.
You can use 2 build files or at least call 2
separate targets what start 2 different
processes...

Otis


 On Fri, 27 Sep 2002,
[EMAIL PROTECTED]
([EMAIL PROTECTED]) wrote:

> Hi all,
> 
> Didn't see this in the faq.
> I want to write an ant task that will
start an appserver
> followed by a process that will start a
web server.
> 
> How can I use ant to start the first
process, the appserver,
> asynchronously?
> The attribute fork='true' doesn't seem to
do the trick.
> 
> I'm running win2k.
> 
> Thanks in advance,
> 
> --Erik
> 
> 
> --
> To unsubscribe, e-mail:  

> For additional commands, e-mail:

> 



Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

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




newbie question: start an asynch process

2002-09-27 Thread Erik.Ostermueller

Hi all,

Didn't see this in the faq.
I want to write an ant task that will start an appserver
followed by a process that will start a web server.

How can I use ant to start the first process, the appserver,
asynchronously?
The attribute fork='true' doesn't seem to do the trick.

I'm running win2k.

Thanks in advance,

--Erik


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




Re[2]: Can't get linkoffline to work with task

2002-09-27 Thread Jacob Kjome

Hello joel,

Are you sure that the URL's that point to the classes in the Java API
are valid when you do this?

In my build.properties file, I set the following:

javadoc.jdk.offline=true
javadoc.jdk.packagelistLoc=C:/j2sdk1.4.1/docs/api/

  note that I tried the above packagelistLoc with and without the
  trailing slash with no difference observed.  I also tried a
  file:/// URL and tried doing .../api/package-list, both of which
  resulted in no links created at all.

I have the following set up to run in Javadoc...



I echoed the values for the above values.  They are...





[echo] true
[echo] http://java.sun.com/j2se/1.4/docs/api/
[echo] C:/j2sdk1.4.1/docs/api/


However, the result of the link to the Object class from the javadoc
of one of my classes ends up being this:

file:///D:/myclasses/repository/enhydra/Barracuda_2002-09-23/Barracuda/javadocs/http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html


That URL is totally invalid.  How did you set things up to get valid
URL's generated pointing to the offline location of your jdk docs


Jake

Friday, September 27, 2002, 3:39:39 AM, you wrote:

jf> Hi Jacob and All,

jf> I finally found where was my mistake, but I believe this revealed a possible RFE 
for Ant  task in order to help diagnose such mistakes:

jf> What happened was that my packagelistLoc path was simply wrong. The problem with 
Ant  task is that apparently in such a case it silently ignore the links 
option and DOES NOT PASS IT to
jf> javadoc itself (as shown by ant -verbose). So I got no error message.

jf> I discovered the problem by invoking directly javadoc itself, in order to check if 
as you suggested javadoc was broken. It is not broken: at the first invocation I 
immediatly got an error
jf> message: "Error reading /my/wrong/path/to/package-list". I fixed the path and 
everything worked fine!

jf> Could it be and RFE to improve Ant  task error reporting in such a case?

jf> Thanks,
jf> Joel


jf> Jacob Kjome wrote:
>> 
>> Hello joel,
>> 
>> I believe this is broken in javadoc itself.  If it worked there, it
>> would work in Ant.  Read the release notes for j2sdk1.4.1.  There is a
>> reference to a bug about that.
>> 
>> Jake
>> 
>> Thursday, September 26, 2002, 11:14:02 AM, you wrote:
>> 
>> jf> Hi,
>> 
>> jf> I use the javadoc task in my project. It works fine except that I can't get the 
>linkoffline option
>> jf> to work.
>> 
>> jf> I tried using the linkoffline attribute of the  task like this:
>> jf> 
>> 
>> jf> And I also tried the  nested element like this:
>> jf> > jf> packagelistloc="${link.javadoc.packagelist.j2se}" />
>> 
>> jf> But in both case, when I run ant (with the -verbose option to see what gets 
>actually passed to
>> jf> javadoc), the -linkoffline option is not present in the actual call to javadoc.
>> 
>> jf> I searched the ant-user list and did not see any mention of this problem. Am I 
>missing something?
>> 
>> jf> Thanks,
>> jf> Joel
>> 
>> --
>> Best regards,
>>  Jacobmailto:[EMAIL PROTECTED]




-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




RE: include jpeg/gifs in a jar

2002-09-27 Thread McHenry, Matt


Sorry for the tardy reply, but in case anyone is interested ...
Mel's suggestion will fix the problem.  The reason for this is bug #4214785
in Sun's bug parade ("Plug-in doesn't load images from JAR files").

Matt McHenry
Software Developer
Carnegie Learning

> -Original Message-
> From: Riffe, Melvin [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 16, 2002 10:05
> To: 'Ant Users List'
> Subject: RE: include jpeg/gifs in a jar
> 
> 
> Neil,
> 
> just a guess here as i've not done any applet development or heard of
> condensity (i feel a googling coming on...)
> 
> using straight ant and the  task, try compress="false".  
> this stores
> the files without compressing them.  sounds like you're 
> trying to access the
> image files directly from the jar and they've been compressed.
> 
> again, this is just a guess... ;-)
> 
> Mel Riffe
> 
> 
> -Original Message-
> From: Neil Oman [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 16, 2002 9:46 AM
> To: Ant Users List
> Subject: Re: include jpeg/gifs in a jar
> 
> 
> Hello,
> 
> I've written a few java applets and want to bundle them into 
> a jar using ant
> & condensity 2.0.
> 
> First of all I can't find a way that condensity will allow me 
> to include
> gifs and jpegs, build fails whatever I try.
> Second of all if I don't use condensity, just ant, my gifs 
> and jpegs get
> "junked". They are either not recognised by the applet or 
> only half of each
> picture is loaded.
> I have also tried bundling them all into a normal jar, and 
> this has much the
> same effect.
> 
> I tried this method with java 1.2beta, bundling all into one 
> jar in several
> java 1.1 applets a year ago and it worked fine, now I have 
> java 1.4 and the
> code is in java 1.2. My picture loader can load images from 
> within a jar,
> and the code is the same as that used a year ago.
> 
> Am I doing something terribly stupid? or is it not me at all?
> 
> Can somebody please help!
> Kind Regards,
> Neil Oman
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail: 
 
**
The information transmitted herewith is sensitive information intended only
for use by the individual or entity to which it is addressed. If the reader
of this message is not the intended recipient, you are hereby notified that
any review, retransmission, dissemination, distribution, copying or other
use of, or taking of any action in reliance upon this information is
strictly prohibited. If you have received this communication in error,
please contact the sender and delete the material from your computer.



failed Junit test -> file permission error? Ant 1.5 bug?

2002-09-27 Thread otisg

Hello,

I am running JUnit tests via Ant 1.5 on
Windows, and whenever a test fails Ant
reports it as file permission error, which
is completely incorrect.

Here is an example:

[junit] Running
net.wgen.amp.model.AmpUserTest
[junit]
java.security.AccessControlException: access
denied (java.io.FilePermission
C:\NightlyBuild\checkout\mclass\javaserver\build\reports\ut\TEST-net.wgen.amp.model.AmpUserTest.xml
write)
[junit] at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:267)
[junit] at
java.security.AccessController.checkPermission(AccessController.java:394)
[junit] at
java.lang.SecurityManager.checkPermission(SecurityManager.java:540)
[junit] at
java.lang.SecurityManager.checkWrite(SecurityManager.java:973)
[junit] at
java.io.FileOutputStream.(FileOutputStream.java:91)
[junit] at
java.io.FileOutputStream.(FileOutputStream.java:57)
[junit] at
java.io.FileOutputStream.(FileOutputStream.java:127)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:206)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.createAndStoreFormatter(JUnitTestRunner.java:550)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:495)
[junit] Exception in thread "main" 
[junit] TEST
net.wgen.amp.model.AmpUserTest FAILED


Is this a known problem?

I've been trying to get around this for
about a week now, but I'm stuck at this
point, unfortunately :(

Any help would be very, very much appreciated!

Thanks,
Otis



Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

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




How can I repeat a failed task?

2002-09-27 Thread Chris Gunn

I created build file to create a label in VSS, then get from that label,
then build my application.  The problem is that the get from label often
fails due to networking problems.  Is there a way to tell ANT to repeat a
task until it succeeds, or to try several times before failing?

Thanks

Chris Gunn
Titan Systems



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




Copy files to output, but a directory higher...

2002-09-27 Thread Richard Tasker

I am trying to copy files from /src/blah/I18N -> /output/blah for my whole
source hierarchy using the glob mapper, I saw some postings on cross
platform problems, but cannot get it to work.  I am using ant1.4.1 on
Windows.

Here is the task:







I have tried:






Am I just being a lamer?

Thanks
Richard


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




Re: Bug in 'basename'?

2002-09-27 Thread Andy Hunt

At 8:44 AM +0200 9/27/02, Stefan Bodewig wrote:
>On Thu, 26 Sep 2002, Andy Hunt <[EMAIL PROTECTED]> wrote:
>
>>  What I'm expecting to be returned is '1.1.1'. Is there
>>  a way around this?
>
>This is a known bug in Ant 1.5 that has been fixed in CVS (to be
>verified by using a nightly build) and will be fixed in 1.5.1.

The nightly build works like a charm - Thanks!



ah.

---
Andrew Hunt
Manager, Electronic Documentation
Wolfram Research, Inc.
http://www.wolfram.com/

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


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




RE: ANT CVS tagging

2002-09-27 Thread Craig Ciquera


  



  

-Original Message-
From: Geoff Meakin [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 9:36 AM
To: [EMAIL PROTECTED]
Subject: ANT CVS tagging


Hi all you Ant/CVS experts,

Is there any way to actual tag my CVS tree with a tag as part of an ANT
build process (without using  obviously...) I note the CVS tasks
available but they seem to be more geared to getting stuff out of CVS.

Any help would be appreciated

Thanks
Geoff


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



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




RE: ANT CVS tagging

2002-09-27 Thread Craig Ciquera



  



  

-Original Message-
From: Geoff Meakin [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 9:36 AM
To: [EMAIL PROTECTED]
Subject: ANT CVS tagging


Hi all you Ant/CVS experts,

Is there any way to actual tag my CVS tree with a tag as part of an ANT
build process (without using  obviously...) I note the CVS tasks
available but they seem to be more geared to getting stuff out of CVS.

Any help would be appreciated

Thanks
Geoff


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



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




ANT CVS tagging

2002-09-27 Thread Geoff Meakin

Hi all you Ant/CVS experts,

Is there any way to actual tag my CVS tree with a tag as part of an ANT
build process (without using  obviously...) I note the CVS tasks
available but they seem to be more geared to getting stuff out of CVS.

Any help would be appreciated

Thanks
Geoff


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




Re: Can't get linkoffline to work with task

2002-09-27 Thread joel feraud

Hi Jacob and All,

I finally found where was my mistake, but I believe this revealed a possible RFE for 
Ant  task in order to help diagnose such mistakes:

What happened was that my packagelistLoc path was simply wrong. The problem with Ant 
 task is that apparently in such a case it silently ignore the links option 
and DOES NOT PASS IT to javadoc itself (as shown by ant -verbose). So I got no error 
message.

I discovered the problem by invoking directly javadoc itself, in order to check if as 
you suggested javadoc was broken. It is not broken: at the first invocation I 
immediatly got an error message: "Error reading /my/wrong/path/to/package-list". I 
fixed the path and everything worked fine!

Could it be and RFE to improve Ant  task error reporting in such a case?

Thanks,
Joel


Jacob Kjome wrote:
> 
> Hello joel,
> 
> I believe this is broken in javadoc itself.  If it worked there, it
> would work in Ant.  Read the release notes for j2sdk1.4.1.  There is a
> reference to a bug about that.
> 
> Jake
> 
> Thursday, September 26, 2002, 11:14:02 AM, you wrote:
> 
> jf> Hi,
> 
> jf> I use the javadoc task in my project. It works fine except that I can't get the 
>linkoffline option
> jf> to work.
> 
> jf> I tried using the linkoffline attribute of the  task like this:
> jf> 
> 
> jf> And I also tried the  nested element like this:
> jf>  jf> packagelistloc="${link.javadoc.packagelist.j2se}" />
> 
> jf> But in both case, when I run ant (with the -verbose option to see what gets 
>actually passed to
> jf> javadoc), the -linkoffline option is not present in the actual call to javadoc.
> 
> jf> I searched the ant-user list and did not see any mention of this problem. Am I 
>missing something?
> 
> jf> Thanks,
> jf> Joel
> 
> --
> Best regards,
>  Jacobmailto:[EMAIL PROTECTED]

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Joel Feraud Sun Microsystems, Inc.
Tel: +33 476 188 32507, chemin du Vieux Chene
Fax: +33 476 188 35038240 MEYLAN, France
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

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