cvs commit: ant/src/main/org/apache/tools/ant/taskdefs ExecuteJava.java

2003-12-07 Thread conor
conor   2003/12/07 14:37:45

  Modified:src/main/org/apache/tools/ant/taskdefs ExecuteJava.java
  Log:
  Head sync
  
  Revision  ChangesPath
  1.39  +7 -0  
ant/src/main/org/apache/tools/ant/taskdefs/ExecuteJava.java
  
  Index: ExecuteJava.java
  ===
  RCS file: 
/home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/ExecuteJava.java,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -w -u -r1.38 -r1.39
  --- ExecuteJava.java  13 Sep 2003 12:58:33 -  1.38
  +++ ExecuteJava.java  7 Dec 2003 22:37:45 -   1.39
  @@ -58,6 +58,7 @@
   import java.io.PrintStream;
   import java.lang.reflect.InvocationTargetException;
   import java.lang.reflect.Method;
  +import java.lang.reflect.Modifier;
   import org.apache.tools.ant.AntClassLoader;
   import org.apache.tools.ant.BuildException;
   import org.apache.tools.ant.Project;
  @@ -158,6 +159,12 @@
   throw new BuildException("Could not find main() method in "
+ classname);
   }
  +
  +if ((main.getModifiers() & Modifier.STATIC) == 0) {
  +throw new BuildException("main() method in " + classname
  ++ " is not declared static");
  +}
  +
   
   if (timeout == null) {
   run();
  
  
  

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



DO NOT REPLY [Bug 25086] - OutOfMemory error leads to confusing error in XmlLogger

2003-12-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25086

OutOfMemory error leads to confusing error in XmlLogger





--- Additional Comments From [EMAIL PROTECTED]  2003-12-07 22:32 ---
In general, when an "out of memory" occurs there is a good chance that things
will be hosed from thereon due to the failure in some operations. This will
apply to far more than the XMLLogger. I would guess that in this case the
XMLLogger has failed to push a context onto the element stack due to the OOM and
this causes the POP failure. 

I think you need to address the root cause of the OOM, rather than try to
address it in the XMLLogger. Is the OOM being reported properly? Is that the 
issue?

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



DO NOT REPLY [Bug 25258] - System.in closed by

2003-12-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25258

System.in closed by 

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2003-12-07 22:26 ---
I believe the 1.6 behaviour is correct and 1.5 was incorrect. When you use
 without any form of input and the program tries to read from System.in,
it *should* get -1 (i.e. EOF) since there is no input available. Blocking is not
a good behaviour here since it tends to hang the build. 

If the process eats the CPU, I would suspect that the java program is not
handling EOF situations correctly. 

When you say "with Ant 1.5.4 the read() method blocks as expected", I have to
say, this is not "expected" but was a bug in Ant prior top Ant 1.6

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



DO NOT REPLY [Bug 25274] - [PATCH] Docs for should mention that JDK 1.4 includes an XSLT processor

2003-12-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25274

[PATCH] Docs for  should mention that JDK 1.4 includes an XSLT processor





--- Additional Comments From [EMAIL PROTECTED]  2003-12-07 21:33 ---
Created an attachment (id=9435)
Suggested patch

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



DO NOT REPLY [Bug 25274] New: - [PATCH] Docs for should mention that JDK 1.4 includes an XSLT processor

2003-12-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25274

[PATCH] Docs for  should mention that JDK 1.4 includes an XSLT processor

   Summary: [PATCH] Docs for  should mention that JDK 1.4
includes an XSLT processor
   Product: Ant
   Version: 1.6Beta
  Platform: All
OS/Version: All
Status: NEW
  Severity: Minor
  Priority: Other
 Component: Documentation
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Assuming the majority of people will be using JDK 1.4+ anyway, the manual should
not confuse them by telling them they need to download an XSLT processor, when
the JRE already includes one that Ant will use by default.

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



Bug report for Ant [2003/12/07]

2003-12-07 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
| 1509|Opn|Enh|2001-04-25|Project object not fully functional in BuildEvents|
| 2743|New|Enh|2001-07-23|More sophisticated dependency analysis|
| 2811|Ass|Enh|2001-07-25| does not work when an interface is modifi|
| 3198|Opn|Enh|2001-08-21|The  task doesn't work properly with multi-|
| 3310|New|Enh|2001-08-28|Clear case files and directories  |
| 3808|New|Enh|2001-09-25|making interfaces that projects implements.   |
| 3968|New|Enh|2001-10-04|Need way to have ejbjar task continue when errors |
| 4066|New|Enh|2001-10-10|Ant task and classpath|
| 4240|Opn|Enh|2001-10-17|war task enhancements needed  |
| 5019|Ass|Maj|2001-11-21|ejbjar does not package ejb-ref interfaces|
| 5035|New|Enh|2001-11-22|Patternset and fileset enhancements   |
| 5270|Opn|Enh|2001-12-04|Ant task - allow multiple targets |
| 5748|New|Enh|2002-01-08|Filtering, Default Filter |
| 5789|New|Enh|2002-01-10|Enhanced PVCS task.   |
| 5949|New|Enh|2002-01-21|Stop using timestamp for "out-of-dateness" check  |
| 6226|New|Enh|2002-02-04|Organization of ant/lib directory, contents of ant|
| 6266|New|Enh|2002-02-06|Ant Zip task additional parameter request |
| 6368|Opn|Enh|2002-02-11|Wild card as a target name or comma separated targ|
| 6475|New|Enh|2002-02-14|I would like to be able to do the diff with to fil|
| 6495|New|Enh|2002-02-15|Support XML catalogs to resolve external entities |
| 6599|New|Enh|2002-02-20|Fork in javadoc is not needed if you added a secur|
| 6606|Opn|Enh|2002-02-21|META-BUG problems with delegating classloaders|
| 6757|New|Enh|2002-02-28|adding visibility to tasks|
| 7245|Ass|Enh|2002-03-19|JUnit & JUnitReport tasks / VM constraints|
| 7546|New|Enh|2002-03-27|EjbJar:Borland Task doesn't allow alternate compil|
| 7624|New|Enh|2002-03-29|chmod task should be extensible to non-Unix system|
| 7712|New|Enh|2002-04-03|Provide patternset support for VSSGET task?   |
| 7879|New|Enh|2002-04-09|the "style" task is very useful, but a little too |
| 8031|Opn|Enh|2002-04-12|[PATCH] Suggest ProjectHelperImpl use File.toURI()|
| 8089|New|Maj|2002-04-15|weblogic-Element of ejbjar-Task needs support for |
| 8294|New|Enh|2002-04-19|Make apply better!|
| 8502|New|Enh|2002-04-25|Style task needs a failonerror/haltonerror attribu|
| 8559|New|Enh|2002-04-26|Add  to , add a new task ex.  property v|
| 8981|New|Enh|2002-05-10|Tar task command additional features  |
| 8986|New|Enh|2002-05-10|New attributes and nested tags for WAR task   |
| 8988|New|Enh|2002-05-10|global property inside a target   |
| 9294|New|Enh|2002-05-21|[PATCH] optional/j2ee/ServerDeploy OC4J Support   |
| 9296|New|Enh|2002-05-21|pathconvert should use default separators without |
| 9481|Ass|Enh|2002-05-29|Add a "prefix" attribute to ExpandProperties filte|
| 9671|New|Enh|2002-06-06|Add nested dirset in delete task  |
| 9784|New|Enh|2002-06-11|BuildNumber task: make more extendable... |
| 9892|New|Enh|2002-06-15|Comments on classpath tool|
| 9995|Ass|Enh|2002-06-19|MKS Source Integrity tasks|
|10020|New|Enh|2002-06-19|'s dependency behaviour should be more con|
|10231|New|Enh|2002-06-25|Need access to current file in SQLExec|
|10283|New|Enh|2002-06-27|Add a destfile to the uptodate task   |
|10402|New|Enh|2002-07-02|adding the ability of html like whitespace preserv|
|10413|Ass|Enh|2002-07-02|enhancement: JUnit task only creates one forked VM|
|10570|New|Enh|2002-07-08|more value on  tag with -projecthelp |
|10638|New|Enh|2002-07-10|Ant 2 should support the options with '-' and '--'|
|10652|New|Enh|2002-07-10|WebDav Support|
|10765|New|Enh|2002-07-12|junitreport stylesheet shou