svn commit: r537023 - in /ant/core/trunk/src: main/org/apache/tools/ant/filters/StripLineComments.java tests/antunit/filters/striplinecomments-test.xml

2007-05-10 Thread mbenson
Author: mbenson
Date: Thu May 10 15:35:27 2007
New Revision: 537023

URL: http://svn.apache.org/viewvc?view=rev&rev=537023
Log:
exclusivity

Modified:
ant/core/trunk/src/main/org/apache/tools/ant/filters/StripLineComments.java
ant/core/trunk/src/tests/antunit/filters/striplinecomments-test.xml

Modified: 
ant/core/trunk/src/main/org/apache/tools/ant/filters/StripLineComments.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/filters/StripLineComments.java?view=diff&rev=537023&r1=537022&r2=537023
==
--- ant/core/trunk/src/main/org/apache/tools/ant/filters/StripLineComments.java 
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/filters/StripLineComments.java 
Thu May 10 15:35:27 2007
@@ -208,6 +208,9 @@
  * Must not be null.
  */
 public final void setValue(String comment) {
+if (value != null) {
+throw new IllegalStateException("Comment value already set.");
+}
 value = comment;
 }
 

Modified: ant/core/trunk/src/tests/antunit/filters/striplinecomments-test.xml
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/filters/striplinecomments-test.xml?view=diff&rev=537023&r1=537022&r2=537023
==
--- ant/core/trunk/src/tests/antunit/filters/striplinecomments-test.xml 
(original)
+++ ant/core/trunk/src/tests/antunit/filters/striplinecomments-test.xml Thu May 
10 15:35:27 2007
@@ -55,4 +55,14 @@
 
   
 
+  
+
+  
+
+  #"
+
+  
+
+  
+
 



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



svn commit: r537021 - in /ant/core/trunk: WHATSNEW src/main/org/apache/tools/ant/filters/StripLineComments.java src/tests/antunit/filters/ src/tests/antunit/filters/striplinecomments-test.xml

2007-05-10 Thread mbenson
Author: mbenson
Date: Thu May 10 15:30:36 2007
New Revision: 537021

URL: http://svn.apache.org/viewvc?view=rev&rev=537021
Log:
striplinecomments comment nested text value

Added:
ant/core/trunk/src/tests/antunit/filters/
ant/core/trunk/src/tests/antunit/filters/striplinecomments-test.xml   (with 
props)
Modified:
ant/core/trunk/WHATSNEW
ant/core/trunk/src/main/org/apache/tools/ant/filters/StripLineComments.java

Modified: ant/core/trunk/WHATSNEW
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/WHATSNEW?view=diff&rev=537021&r1=537020&r2=537021
==
--- ant/core/trunk/WHATSNEW (original)
+++ ant/core/trunk/WHATSNEW Thu May 10 15:30:36 2007
@@ -128,6 +128,10 @@
 
 *  is now usable as a single-element ResourceCollection.
 
+* It is now possible to provide the value of a  filter's
+   nested element as nested text instead of using the 'value'
+  attribute.
+
 
 Changes from Ant 1.6.5 to Ant 1.7.0
 ===

Modified: 
ant/core/trunk/src/main/org/apache/tools/ant/filters/StripLineComments.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/filters/StripLineComments.java?view=diff&rev=537021&r1=537020&r2=537021
==
--- ant/core/trunk/src/main/org/apache/tools/ant/filters/StripLineComments.java 
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/filters/StripLineComments.java 
Thu May 10 15:30:36 2007
@@ -219,5 +219,15 @@
 public final String getValue() {
 return value;
 }
+
+/**
+ * Alt. syntax to set the prefix for this type of line comment.
+ *
+ * @param comment The prefix for a line comment of this type.
+ * Must not be null.
+ */
+public void addText(String comment) {
+setValue(comment);
+}
 }
 }

Added: ant/core/trunk/src/tests/antunit/filters/striplinecomments-test.xml
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/filters/striplinecomments-test.xml?view=auto&rev=537021
==
--- ant/core/trunk/src/tests/antunit/filters/striplinecomments-test.xml (added)
+++ ant/core/trunk/src/tests/antunit/filters/striplinecomments-test.xml Thu May 
10 15:30:36 2007
@@ -0,0 +1,58 @@
+
+  
+
+  
+
+  foo
+#pound
+bar
+//java sl
+baz
+REMark
+
+
+  
+
+
+
+  
+
+  
+
+  
+  
+
+  
+
+
+  
+
+  
+
+  
+
+  
+
+  
+
+  
+
+  
+
+  
+
+  
+  
+  
+
+  
+
+  
+
+  #
+  //
+  REM
+
+  
+
+

Propchange: ant/core/trunk/src/tests/antunit/filters/striplinecomments-test.xml
--
svn:eol-style = native



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



svn commit: r537020 - /ant/core/trunk/WHATSNEW

2007-05-10 Thread mbenson
Author: mbenson
Date: Thu May 10 15:28:38 2007
New Revision: 537020

URL: http://svn.apache.org/viewvc?view=rev&rev=537020
Log:
whatsnew wrt string encoding

Modified:
ant/core/trunk/WHATSNEW

Modified: ant/core/trunk/WHATSNEW
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/WHATSNEW?view=diff&rev=537020&r1=537019&r2=537020
==
--- ant/core/trunk/WHATSNEW (original)
+++ ant/core/trunk/WHATSNEW Thu May 10 15:28:38 2007
@@ -8,6 +8,11 @@
resources being expanded more than once, it no longer happens.
   Bugzilla report 42277.
 
+* A String resource's encoding attribute was only taken into account when
+  set from the resource's OutputStream; the InputStream provided the String's
+  binary content according to the platform's default encoding. Behavior has
+  been modified to encode outgoing (InputStream) content as well as encoding
+  incoming (OutputStream) content.
 
 Fixed bugs:
 ---



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



svn commit: r537018 - /ant/core/trunk/src/main/org/apache/tools/ant/types/resources/StringResource.java

2007-05-10 Thread mbenson
Author: mbenson
Date: Thu May 10 15:23:57 2007
New Revision: 537018

URL: http://svn.apache.org/viewvc?view=rev&rev=537018
Log:
fix (I think) encoding for InputStream from StringResource

Modified:

ant/core/trunk/src/main/org/apache/tools/ant/types/resources/StringResource.java

Modified: 
ant/core/trunk/src/main/org/apache/tools/ant/types/resources/StringResource.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/StringResource.java?view=diff&rev=537018&r1=537017&r2=537018
==
--- 
ant/core/trunk/src/main/org/apache/tools/ant/types/resources/StringResource.java
 (original)
+++ 
ant/core/trunk/src/main/org/apache/tools/ant/types/resources/StringResource.java
 Thu May 10 15:23:57 2007
@@ -15,7 +15,6 @@
  *  limitations under the License.
  *
  */
-
 package org.apache.tools.ant.types.resources;
 
 import java.io.IOException;
@@ -183,11 +182,12 @@
 if (isReference()) {
 return ((Resource) getCheckedRef()).getInputStream();
 }
-//I can't get my head around this; is encoding treatment needed here?
-return
-//new oata.util.ReaderInputStream(new InputStreamReader(
-new ByteArrayInputStream(getContent().getBytes());
-//, encoding), encoding);
+String content = getContent();
+if (content == null) {
+throw new IllegalStateException("unset string value");
+}
+return new ByteArrayInputStream(encoding == null
+? content.getBytes() : content.getBytes(encoding));
 }
 
 /**



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



DO NOT REPLY [Bug 42389] - Ant "Mail" task fails to send mail if "encoding" isn't provided (and Auto selects "Mime" type)

2007-05-10 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://issues.apache.org/bugzilla/show_bug.cgi?id=42389


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 42389] New: - Ant "Mail" task fails to send mail if "encoding" isn't provided (and Auto selects "Mime" type)

2007-05-10 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://issues.apache.org/bugzilla/show_bug.cgi?id=42389

   Summary: Ant "Mail" task fails to send mail if "encoding" isn't
provided (and Auto selects "Mime" type)
   Product: Ant
   Version: 1.7.0
  Platform: PC
OS/Version: Windows XP
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: [EMAIL PROTECTED]


There seems to be a possible bug in ant 1.7.0 (this does NOT affect 1.6.5 or 
1.6.2).

When using the  task in ant to generate and send an e-mail on our systems,
the mail will fail to be sent with no error, no warning and no failures unless
the "encoding" attribute is set to an acceptable encoding method.

At my work, "mime" e-mail is unusable.  However, when using an ant  task
as follows:

   

1.7.0 produces the following output:

 [mail] Failed to initialise MIME mail: javax/mail/MessagingException

Run through 1.6.5 or 1.6.2 the following is the output:

 [mail] Failed to initialise MIME mail: javax/mail/MessagingException
 [mail] Using UU mail
 [mail] Sending email: [ANT-SERVER] cybere_mtb01 stopped...please don't use

 [mail] From [EMAIL PROTECTED]
 [mail] ReplyTo []
 [mail] To []
 [mail] Cc []
 [mail] Bcc []
 [mail] Sent email with 0 attachments

 When I add an "encoding" statement onto the  task above as follows:



I get the appropriate information and the e-mail generates and sends.

I assume there is an issue with the "auto" code in which it makes what it thinks
is an intelligent selection as to which mail type to use (in our case "MIME")
but if that fails doesn't continue beyond to the next mail type like 1.6.5 and
1.6.2 does.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



svn commit: r536878 - /ant/core/trunk/src/tests/antunit/types/resources/concat-resource-test.xml

2007-05-10 Thread mbenson
Author: mbenson
Date: Thu May 10 07:50:24 2007
New Revision: 536878

URL: http://svn.apache.org/viewvc?view=rev&rev=536878
Log:
add another test

Modified:
ant/core/trunk/src/tests/antunit/types/resources/concat-resource-test.xml

Modified: 
ant/core/trunk/src/tests/antunit/types/resources/concat-resource-test.xml
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/types/resources/concat-resource-test.xml?view=diff&rev=536878&r1=536877&r2=536878
==
--- ant/core/trunk/src/tests/antunit/types/resources/concat-resource-test.xml 
(original)
+++ ant/core/trunk/src/tests/antunit/types/resources/concat-resource-test.xml 
Thu May 10 07:50:24 2007
@@ -87,4 +87,20 @@
 
   
 
+  
+
+  foo
+
+
+  
+
+
+  foo
+  
+  
+  
+
+  
+
+  
 



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



[EMAIL PROTECTED]: Project test-ant-no-xerces (in module ant) failed

2007-05-10 Thread Gump Integration Build
To whom it may engage...

This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at [EMAIL PROTECTED]

Project test-ant-no-xerces has an issue affecting its community integration.
This issue affects 1 projects.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- test-ant-no-xerces :  Java based build tool


Full details are available at:
http://vmgump.apache.org/gump/public/ant/test-ant-no-xerces/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -INFO- Failed with reason build failed



The following work was performed:
http://vmgump.apache.org/gump/public/ant/test-ant-no-xerces/gump_work/build_ant_test-ant-no-xerces.html
Work Name: build_ant_test-ant-no-xerces (Type: Build)
Work ended in a state of : Failed
Elapsed: 11 mins 26 secs
Command Line: /opt/jdk1.5/bin/java -Djava.awt.headless=true 
org.apache.tools.ant.Main -Dgump.merge=/x1/gump/public/gump/work/merge.xml 
-Dbuild.sysclasspath=only -Dtest.haltonfailure=false 
-Dant.home=/usr/local/gump/public/workspace/ant/dist run-tests 
[Working Directory: /usr/local/gump/public/workspace/ant]
CLASSPATH: 
/opt/jdk1.5/lib/tools.jar:/usr/local/gump/public/workspace/ant/build/testcases:/usr/local/gump/public/workspace/ant/src/tests/junit:/usr/local/gump/public/workspace/ant/src/etc/testcases:/usr/local/gump/public/workspace/ant/build/lib/ant-stylebook.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-jmf.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-swing.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-junit.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-apache-resolver.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-javamail.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-apache-bcel.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-apache-regexp.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-trax.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-commons-net.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-jsch.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-apache-log4j.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-antlr.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-commons-logging.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-jdepend.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-apache-bsf.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-nodeps.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-apache-oro.jar:/usr/local/gump/public/workspace/ant/build/lib/ant.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-jai.jar:/usr/local/gump/packages/antlr-2.7.6/antlr.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-09052007.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-09052007.jar:/usr/local/gump/public/workspace/jakarta-commons/net/dist/commons-net-09052007.jar:/usr/local/gump/packages/jaf-1.1ea/activation.jar:/usr/local/gump/public/workspace/jakarta-bcel/target/bcel-5.3-SNAPSHOT.jar:/usr/local/gump/public/workspace/jakarta-bsf/build/lib/bsf.jar:/usr/local/gump/public/workspace/logging-log4j/dist/lib/log4j-09052007.jar:/usr/local/gump/public/workspace/jakarta-oro/jakarta-oro-09052007.jar:/usr/local/gump/public/workspace/jakarta-regexp/build/jakarta-regexp-09052007.jar:/usr/local/gump/public/workspace/jakarta-servletapi-4/lib/servlet.jar:/usr/local/gump/packages/javamail-1.4/mail.jar:/usr/local/gump/packages/javamail-1.4/lib/mailapi.jar:/usr/local/gump/packages/jdepend-2.6/lib/jdepend.jar:/usr/local/gump/packages/jsch/jsch-0.1.28.jar:/usr/local/gump/public/workspace/xml-stylebook/bin/stylebook-1.0-b3_xalan-2.jar:/usr/local/gump/public/workspace/ant-antlibs/antunit/build/ant-antunit-09052007.jar:/usr/local/gump/public/workspace/junit/dist/junit-09052007.jar:/usr/local/gump/public/workspace/jakarta-tomcat-4.0/dist/common/lib/jasper-compiler.jar:/usr/local/gump/public/workspace/jakarta-tomcat-4.0/dist/common/lib/jasper-runtime.jar:/usr/local/gump/public/workspace/xml-commons/java/build/which.jar:/usr/local/gump/public/workspace/rhino/build/rhino_09052007/js.jar:/usr/local/gump/packages/bsh-2.0b4/bsh-commands-2.0b4.jar:/usr/local/gump/packages/bsh-2.0b4/bsh-classpath-2.0b4.jar:/usr/local/gump/packages/bsh-2.0b4/bsh-core-2.0b4.jar:/usr/local/gump/packages/bsh-2.0b4/bsh-bsf-2.0b4.jar:/usr/local/gump/packages/bsh-2.0b4/bsh-2.0b4.jar:/usr/local/gump/packages/bsh-2.0b4/bsh-reflect-2.0b4.jar:/usr/local/gump/packages/bsh-2.0b4/bsh-util-2.0b4.jar:/usr/local/gump/public/workspace/jakarta-commons/codec/dist/commons-codec-09052007.jar
-
[au:antunit] Target: testfirst2 took

[EMAIL PROTECTED]: Project test-ant (in module ant) failed

2007-05-10 Thread Gump Integration Build
To whom it may engage...

This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at [EMAIL PROTECTED]

Project test-ant has an issue affecting its community integration.
This issue affects 1 projects.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- test-ant :  Java based build tool


Full details are available at:
http://vmgump.apache.org/gump/public/ant/test-ant/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -INFO- Failed with reason build failed



The following work was performed:
http://vmgump.apache.org/gump/public/ant/test-ant/gump_work/build_ant_test-ant.html
Work Name: build_ant_test-ant (Type: Build)
Work ended in a state of : Failed
Elapsed: 11 mins 34 secs
Command Line: /opt/jdk1.5/bin/java -Djava.awt.headless=true 
-Xbootclasspath/p:/usr/local/gump/public/workspace/xml-xerces2/build/xercesImpl.jar:/usr/local/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar:/usr/local/gump/public/workspace/xml-xalan/build/serializer.jar:/usr/local/gump/public/workspace/xml-xalan/build/xalan-unbundled.jar
 org.apache.tools.ant.Main -Dgump.merge=/x1/gump/public/gump/work/merge.xml 
-Dbuild.sysclasspath=only -Dtest.haltonfailure=false 
-Dant.home=/usr/local/gump/public/workspace/ant/dist run-tests 
[Working Directory: /usr/local/gump/public/workspace/ant]
CLASSPATH: 
/opt/jdk1.5/lib/tools.jar:/usr/local/gump/public/workspace/ant/build/testcases:/usr/local/gump/public/workspace/ant/src/tests/junit:/usr/local/gump/public/workspace/ant/src/etc/testcases:/usr/local/gump/public/workspace/ant/build/lib/ant-stylebook.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-jmf.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-swing.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-junit.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-apache-resolver.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-javamail.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-apache-bcel.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-apache-regexp.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-trax.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-commons-net.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-jsch.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-apache-log4j.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-antlr.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-commons-logging.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-jdepend.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-apache-bsf.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-nodeps.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-apache-oro.jar:/usr/local/gump/public/workspace/ant/build/lib/ant.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-jai.jar:/usr/local/gump/packages/antlr-2.7.6/antlr.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-09052007.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-09052007.jar:/usr/local/gump/public/workspace/jakarta-commons/net/dist/commons-net-09052007.jar:/usr/local/gump/packages/jaf-1.1ea/activation.jar:/usr/local/gump/public/workspace/jakarta-bcel/target/bcel-5.3-SNAPSHOT.jar:/usr/local/gump/public/workspace/jakarta-bsf/build/lib/bsf.jar:/usr/local/gump/public/workspace/logging-log4j/dist/lib/log4j-09052007.jar:/usr/local/gump/public/workspace/jakarta-oro/jakarta-oro-09052007.jar:/usr/local/gump/public/workspace/jakarta-regexp/build/jakarta-regexp-09052007.jar:/usr/local/gump/public/workspace/jakarta-servletapi-4/lib/servlet.jar:/usr/local/gump/packages/javamail-1.4/mail.jar:/usr/local/gump/packages/javamail-1.4/lib/mailapi.jar:/usr/local/gump/packages/jdepend-2.6/lib/jdepend.jar:/usr/local/gump/packages/jsch/jsch-0.1.28.jar:/usr/local/gump/public/workspace/xml-stylebook/bin/stylebook-1.0-b3_xalan-2.jar:/usr/local/gump/public/workspace/ant-antlibs/antunit/build/ant-antunit-09052007.jar:/usr/local/gump/public/workspace/junit/dist/junit-09052007.jar:/usr/local/gump/public/workspace/xml-commons/java/external/build/xml-apis-ext.jar:/usr/local/gump/public/workspace/jakarta-tomcat-4.0/dist/common/lib/jasper-compiler.jar:/usr/local/gump/public/workspace/jakarta-tomcat-4.0/dist/common/lib/jasper-runtime.jar:/usr/local/gump/public/workspace/xml-commons/java/build/which.jar:/usr/local/gump/public/workspace/rhino/build/rhino_09052007/js.jar:/usr/local/gump/packages/bsh-2.0b4/bsh-commands-2.0b4.jar:/usr/local/gump/packages/bsh-2.0b4/bsh-classpath-2.0b4.jar:/usr/local/gump/packages/bsh-2.0b4/bsh-core-2.0b4.jar:/usr/local/gump/packages/bsh-2.0b4/bsh-bsf-2.0b4.jar:/usr/local/

Re: auto download of antlibs

2007-05-10 Thread Xavier Hanin

On 5/10/07, Steve Loughran <[EMAIL PROTECTED]> wrote:


Stephen McConnell wrote:

>
> It seems that there may be two distinct subjects in this thread:
>
>   a) introduction of policy that restricts dynamic resolution of
>  resource to those available via a local file protocol (refer
>  Xavier's comments "By offline I mean with no network access")
>
>   b) introduction of a policy that restricts dynamic resolution
>  of resources to a selection of 'safe'(?) repositories
>
> The first scenario correctly reflects the offline notion while the
second
> scenario does not have any relationship to the term.  However, the
second
> scenario does start to recognize that the physical topology of a machine
is
> not equivalent to the definition of a policy.


"offline" is maybe not the correct term. "partitioned" is more accurate.
when the internet goes from our site, ibiblio is missing, a local
repository is reachable. When the network goes from my laptop, only the
localhost and all VMWare hosted machines are available. My laptop may
still use ssh and mounted filesystem protocols to see the system, but
nothing else.

switching on file IO vs. network IO doesnt cut it, because NFS and
networked mounted DAV filesystems may be on the wrong side of the
partition.

Like you say, it depends on network topologies, but I dont want to
introduce the concept of partitioned network, as it scares people.
Unless we hide it under network "configurations", where different
configurations can have different proxy and repository options. That is
a more realistic world view of how my laptop acts.



Yes, and if we introduce conditional enabling of dependency resolvers in Ivy
(disabled would still use cache), this is something that easily be done by
users (at least if they manually switched from one network configuration to
another). Note that you can already do that in Ivy by switching your
settings, but it would be easier with conditional resolver enablement.

Xavier

Then I can use DNS

and WLAN ID analysis to determine the active configuration; this is
something best done in C++ than java.

-steve

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





--
Xavier Hanin - Independent Java Consultant
Manage your dependencies with Ivy!
http://incubator.apache.org/ivy/


DO NOT REPLY [Bug 42378] New: - task timeout occurence returns 0 as resultproperty

2007-05-10 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://issues.apache.org/bugzilla/show_bug.cgi?id=42378

   Summary:  task timeout  occurence returns 0 as
resultproperty
   Product: Ant
   Version: 1.6.5
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P3
 Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: [EMAIL PROTECTED]
 BugsThisDependsOn: 32853


Overview:
If the  task is used with fork="true", failonerror="false", timeout and
resultproperty, a timeout occurence will return a resultproperty of value 0.
Whereas it should return a non-zero value as the process failed. 

Example:

 







Actual Output:
Timeout: killed the sub-process
StackTrace (see bug 32853 for Stacktrace information)
result = 0

Expected Output:
Timeout: killed the sub-process
result = 

Workaround:
Usage of the  task to start java is possible and returns the expected 
output.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32853] - with fork=true and failOnError=false shows exception stack trace on timeout

2007-05-10 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://issues.apache.org/bugzilla/show_bug.cgi?id=32853


[EMAIL PROTECTED] changed:

   What|Removed |Added

OtherBugsDependingO||42378
  nThis||




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



Re: auto download of antlibs

2007-05-10 Thread Steve Loughran

Stephen McConnell wrote:



It seems that there may be two distinct subjects in this thread:

  a) introduction of policy that restricts dynamic resolution of 
 resource to those available via a local file protocol (refer

 Xavier's comments "By offline I mean with no network access")

  b) introduction of a policy that restricts dynamic resolution 
 of resources to a selection of 'safe'(?) repositories 


The first scenario correctly reflects the offline notion while the second
scenario does not have any relationship to the term.  However, the second
scenario does start to recognize that the physical topology of a machine is
not equivalent to the definition of a policy.



"offline" is maybe not the correct term. "partitioned" is more accurate. 
when the internet goes from our site, ibiblio is missing, a local 
repository is reachable. When the network goes from my laptop, only the 
localhost and all VMWare hosted machines are available. My laptop may 
still use ssh and mounted filesystem protocols to see the system, but 
nothing else.


switching on file IO vs. network IO doesnt cut it, because NFS and 
networked mounted DAV filesystems may be on the wrong side of the 
partition.


Like you say, it depends on network topologies, but I dont want to 
introduce the concept of partitioned network, as it scares people. 
Unless we hide it under network "configurations", where different 
configurations can have different proxy and repository options. That is 
a more realistic world view of how my laptop acts. Then I can use DNS 
and WLAN ID analysis to determine the active configuration; this is 
something best done in C++ than java.


-steve

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



Re: auto download of antlibs

2007-05-10 Thread Xavier Hanin

On 5/10/07, Steve Loughran <[EMAIL PROTECTED]> wrote:


Xavier Hanin wrote:
> On 5/9/07, Steve Loughran <[EMAIL PROTECTED]> wrote:
teresting.
>>
>> Maybe every repository in ivyconf.xml would be marked as offline,
>> meaning they are available when there is no network.When you run ant
(or
>> ivy) with -offline, only offline repositories would be used.
>
>
> What do you mean?  If all repositories are marked as offline, there is
no
> added value. We are currently reviewing our cache management, but for
the
> moment Ivy can already use the cache when you are offline. The problem
is
> that if you ask for a latest version of something, Ivy will try to
connect
> to the repository. For the moment this fails if the repository is not
> available, but we are planning to make it possible to use cache only in
> this
> case. But even with this improvement, trying to connect to a non
available
> repository may take time, so the idea of an offline mode would be to
say:
> "do not use this repository when offline, use only cache" for
repositories
> requiring a network connection, and for those which do not require this
> connection (like a local repo), continue to use the repo and not only
the
> cache.
>
> - xavier

I think I mean you could mark a repository (such as an a  filesystem,
ssh or http repo) as available when a system is offline. When there's an
offline build, the stuff in cache is always there, but you'd only hit
those repositories marked as available offline.



OK, I think I had a similar idea, but thinking about it the other way
around: repositories would have a online property, when set to true the
repository requires network connection, when false it is available offline.
By default an http repository would be considered online, and a filesystem
not, but you could change that. But now I tihnk using an offline property
would be better understood by users, especially because it matches the idea
of the offline mode.

the other trick is to hit every HTTP repo with a GET request on startup,

but that can be misleading. the ibiblio root is dog slow, and proxy
servers can lie, returning an old copy, even when the repository is
missing



Yes, this is not easy to implement and can be very misleading. But maybe we
could see the problem of disabling a repository (as discussed for the
offline mode) in a more generic point of view, and be able to enable/disable
repositories based on a property value. The property could be
ant.build.offline, but it could be anything else. Then the user could pretty
easily define his own property when he knows that a particular repository is
not available, to disable only one repo.

Xavier

-steve


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





--
Xavier Hanin - Independent Java Consultant
Manage your dependencies with Ivy!
http://incubator.apache.org/ivy/


DO NOT REPLY [Bug 42377] New: - task timeout occurence returns 0 as resultproperty

2007-05-10 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://issues.apache.org/bugzilla/show_bug.cgi?id=42377

   Summary:  task timeout  occurence returns 0 as
resultproperty
   Product: Ant
   Version: 1.6.5
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P3
 Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: [EMAIL PROTECTED]
 BugsThisDependsOn: 32853


Overview:
If the  task is used with fork="true", failonerror="false", timeout and
resultproperty, a timeout occurence will return a resultproperty of value 0.
Whereas it should return a non-zero value as the process failed. 

Example:

 







Actual Output:
Timeout: killed the sub-process
StackTrace (see bug 32853 for Stacktrace information)
result = 0

Expected Output:
Timeout: killed the sub-process
result = 

Workaround:
Usage of the  task to start java is possible and returns the expected 
output.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32853] - with fork=true and failOnError=false shows exception stack trace on timeout

2007-05-10 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://issues.apache.org/bugzilla/show_bug.cgi?id=32853


[EMAIL PROTECTED] changed:

   What|Removed |Added

OtherBugsDependingO||42377
  nThis||




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



RE: auto download of antlibs

2007-05-10 Thread Stephen McConnell
 

> -Original Message-
> From: Steve Loughran [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, 10 May 2007 8:20 PM
> To: Ant Developers List
> Subject: Re: auto download of antlibs
> 
> Xavier Hanin wrote:
> > On 5/9/07, Steve Loughran <[EMAIL PROTECTED]> wrote:
> teresting.
> >>
> >> Maybe every repository in ivyconf.xml would be marked as offline, 
> >> meaning they are available when there is no network.When 
> you run ant 
> >> (or
> >> ivy) with -offline, only offline repositories would be used.
> > 
> > 
> > What do you mean?  If all repositories are marked as 
> offline, there is 
> > no added value. We are currently reviewing our cache 
> management, but 
> > for the moment Ivy can already use the cache when you are 
> offline. The 
> > problem is that if you ask for a latest version of 
> something, Ivy will 
> > try to connect to the repository. For the moment this fails if the 
> > repository is not available, but we are planning to make it 
> possible 
> > to use cache only in this case. But even with this 
> improvement, trying 
> > to connect to a non available repository may take time, so 
> the idea of 
> > an offline mode would be to say:
> > "do not use this repository when offline, use only cache" for 
> > repositories requiring a network connection, and for those which do 
> > not require this connection (like a local repo), continue 
> to use the 
> > repo and not only the cache.
> > 
> > - xavier
> 
> I think I mean you could mark a repository (such as an a  
> filesystem, ssh or http repo) as available when a system is 
> offline. When there's an offline build, the stuff in cache is 
> always there, but you'd only hit those repositories marked as 
> available offline.

It seems that there may be two distinct subjects in this thread:

  a) introduction of policy that restricts dynamic resolution of 
 resource to those available via a local file protocol (refer
 Xavier's comments "By offline I mean with no network access")

  b) introduction of a policy that restricts dynamic resolution 
 of resources to a selection of 'safe'(?) repositories 

The first scenario correctly reflects the offline notion while the second
scenario does not have any relationship to the term.  However, the second
scenario does start to recognize that the physical topology of a machine is
not equivalent to the definition of a policy.

Cheers, Steve.

--
Stephen McConnell
mailto:[EMAIL PROTECTED]
http://www.dpml.net
 


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



Re: auto download of antlibs

2007-05-10 Thread Steve Loughran

Xavier Hanin wrote:

On 5/9/07, Steve Loughran <[EMAIL PROTECTED]> wrote:

teresting.


Maybe every repository in ivyconf.xml would be marked as offline,
meaning they are available when there is no network.When you run ant (or
ivy) with -offline, only offline repositories would be used.



What do you mean?  If all repositories are marked as offline, there is no
added value. We are currently reviewing our cache management, but for the
moment Ivy can already use the cache when you are offline. The problem is
that if you ask for a latest version of something, Ivy will try to connect
to the repository. For the moment this fails if the repository is not
available, but we are planning to make it possible to use cache only in 
this

case. But even with this improvement, trying to connect to a non available
repository may take time, so the idea of an offline mode would be to say:
"do not use this repository when offline, use only cache" for repositories
requiring a network connection, and for those which do not require this
connection (like a local repo), continue to use the repo and not only the
cache.

- xavier


I think I mean you could mark a repository (such as an a  filesystem, 
ssh or http repo) as available when a system is offline. When there's an 
offline build, the stuff in cache is always there, but you'd only hit 
those repositories marked as available offline.


the other trick is to hit every HTTP repo with a GET request on startup, 
but that can be misleading. the ibiblio root is dog slow, and proxy 
servers can lie, returning an old copy, even when the repository is missing


-steve

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



Re: JavaFX

2007-05-10 Thread Peter Reilly

Opps,
I see the class in the jar.

Ok, there does seem to be a problem in
setting beans in the script,
I get the exception
javax.script.ScriptException: Invalid binding name project
for all the names used (self, basedir etc).
Commenting out the setting of the beans,
the following works:
 
   
 
   
import javafx.ui.*;

Frame {
   title: "Hello World JavaFX"
   width: 200
   height: 50
   content: Label {
   text: "Hello World"
   }
   visible: true
}
 
 


I have sent an email to the openjfx mailling list about
the problem.

Peter

On 5/10/07, Peter Reilly <[EMAIL PROTECTED]> wrote:

Should be no need to do anything special
Ant 1.7.0 supports the javax scripting and there is
a javax scripting engine for javafx. Unfortunately, it
does not seem to be released yet.
the engine is net.java.jsr223.JavaFXScriptEngine
in the SPI for javax.script.ScriptEngineFactory in
the javafxft.jar file.

Peter

On 5/10/07, Kevin Jackson <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Is there a need to support JavaFX in Ant going forward?  We already
> support javascript via bsf & javax.scripting, we also support a
> multitude of dynamic/scripting languages, should we add support for
> this one?
>
> Kev
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



[EMAIL PROTECTED]: Project svn-antlib-test (in module ant-antlibs) failed

2007-05-10 Thread Gump Integration Build
To whom it may engage...

This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at [EMAIL PROTECTED]

Project svn-antlib-test has an issue affecting its community integration.
This issue affects 1 projects.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- svn-antlib-test :  Task and Type Libraries for Apache Ant


Full details are available at:
http://vmgump.apache.org/gump/public/ant-antlibs/svn-antlib-test/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Dependency on ant-testutil exists, no need to add for property 
ant-testutil.jar.
 -INFO- Failed with reason build failed



The following work was performed:
http://vmgump.apache.org/gump/public/ant-antlibs/svn-antlib-test/gump_work/build_ant-antlibs_svn-antlib-test.html
Work Name: build_ant-antlibs_svn-antlib-test (Type: Build)
Work ended in a state of : Failed
Elapsed: 2 mins 16 secs
Command Line: /opt/jdk1.5/bin/java -Djava.awt.headless=true 
-Xbootclasspath/p:/usr/local/gump/public/workspace/xml-xerces2/build/xercesImpl.jar:/usr/local/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar
 org.apache.tools.ant.Main -Dgump.merge=/x1/gump/public/gump/work/merge.xml 
-Dbuild.sysclasspath=only 
-Dant-testutil.jar=/usr/local/gump/public/workspace/ant/build/lib/ant-testutil.jar
 test 
[Working Directory: /usr/local/gump/public/workspace/ant-antlibs/svn]
CLASSPATH: 
/opt/jdk1.5/lib/tools.jar:/usr/local/gump/public/workspace/ant-antlibs/svn/build/test-classes:/usr/local/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-swing.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-trax.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-junit.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-nodeps.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-testutil.jar:/usr/local/gump/public/workspace/junit/dist/junit-09052007.jar:/usr/local/gump/public/workspace/ant-antlibs/svn/build/ant-svn-09052007.jar:/usr/local/gump/public/workspace/xml-commons/java/external/build/xml-apis-ext.jar
-
[junit] at junit.framework.TestSuite.run(TestSuite.java:227)
[junit] at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:76)
[junit] at 
junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:33)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:743)
[junit] 
[junit] Testcase: testDiffWithImplicitTrunk took 28.779 sec
[junit] FAILED
[junit] null
[junit] junit.framework.AssertionFailedError: null
[junit] at junit.framework.Assert.fail(Assert.java:47)
[junit] at junit.framework.Assert.assertTrue(Assert.java:20)
[junit] at junit.framework.Assert.assertTrue(Assert.java:27)
[junit] at 
org.apache.ant.svn.SvnTagDiffTest.assertModified(SvnTagDiffTest.java:110)
[junit] at 
org.apache.ant.svn.SvnTagDiffTest.assertDiffWithTrunk(SvnTagDiffTest.java:63)
[junit] at 
org.apache.ant.svn.SvnTagDiffTest.testDiffWithImplicitTrunk(SvnTagDiffTest.java:57)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at junit.framework.TestCase.runTest(TestCase.java:168)
[junit] at junit.framework.TestCase.runBare(TestCase.java:134)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:110)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:128)
[junit] at junit.framework.TestResult.run(TestResult.java:113)
[junit] at junit.framework.TestCase.run(TestCase.java:124)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:232)
[junit] at junit.framework.TestSuite.run(TestSuite.java:227)
[junit] at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:76)
[junit] at 
junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:33)
[junit] at 
org.apache.tools.ant.ta

Re: JavaFX

2007-05-10 Thread Peter Reilly

Should be no need to do anything special
Ant 1.7.0 supports the javax scripting and there is
a javax scripting engine for javafx. Unfortunately, it
does not seem to be released yet.
the engine is net.java.jsr223.JavaFXScriptEngine
in the SPI for javax.script.ScriptEngineFactory in
the javafxft.jar file.

Peter

On 5/10/07, Kevin Jackson <[EMAIL PROTECTED]> wrote:

Hi all,

Is there a need to support JavaFX in Ant going forward?  We already
support javascript via bsf & javax.scripting, we also support a
multitude of dynamic/scripting languages, should we add support for
this one?

Kev

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




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



JavaFX

2007-05-10 Thread Kevin Jackson

Hi all,

Is there a need to support JavaFX in Ant going forward?  We already
support javascript via bsf & javax.scripting, we also support a
multitude of dynamic/scripting languages, should we add support for
this one?

Kev

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