Re: Commons-Attributes 2.2 Corrupted Manifest
I already asked for a 2.2.1 release to remove those -Extension in manifest, as they break running my app under tomcat 4. Those libs are only required by the compiler jar, not the api (runtime) jar, tho they can be removed from the manifest. This manifest is hand-writen and is included during the ant build. Building with maven doesn't include it. @see http://www.mail-archive.com/commons-dev@jakarta.apache.org/msg88665.html Nico. 2007/3/6, Jörg Schaible [EMAIL PROTECTED]: Henri Yandell wrote on Monday, March 05, 2007 9:45 PM: On 3/5/07, Leo Sutic [EMAIL PROTECTED] wrote: On 3/5/07, Jörg Schaible [EMAIL PROTECTED] wrote: Leo Sutic wrote: Hi all, the Commons-Attributes 2.2 jars have corrupted manifest.mf files. This is apparently causing a bit of problems for users. The issue is in the extension properties: ant-Implementation-URL: http://www.ibiblio.org/maven/ant/jars/ant-1.5. jar qdox-Extension-Name: qdox qdox-Implementation-Version: 1.5 qdox-Implementation-URL: http://www.ibiblio.org/maven/qdox/jars/qdox-1 .5.jar As you can see, there are spaces and cr/lfs in the URLs. This causes maven 2 etc. to fail. AFAICS the manifest is OK according the spec (http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#Name-V alue%20pairs%20and%20Sections) by respecting the line length of 72 bytes. Longer lines violate the manifest ... Heh. Thanks - I had no idea. Well, that explains where those line breaks came from. I guess the ball is in the other court then. I'm aiming to make a 2.2.1 release at some point for this - but low energy towards it currently. The above is good to know, said manifest was generated by a Sun JDK (1.4 I presume) on a Linux box, so nothing out of the ordinary. Is there an issue raised with Maven for this? Don't think so. What exactly is the reported problem? - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r515035 - /jakarta/commons/proper/commons-parent/trunk/pom.xml
Author: jochen Date: Tue Mar 6 01:05:17 2007 New Revision: 515035 URL: http://svn.apache.org/viewvc?view=revrev=515035 Log: Release of Apache Parent 4. Modified: jakarta/commons/proper/commons-parent/trunk/pom.xml Modified: jakarta/commons/proper/commons-parent/trunk/pom.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/commons-parent/trunk/pom.xml?view=diffrev=515035r1=515034r2=515035 == --- jakarta/commons/proper/commons-parent/trunk/pom.xml (original) +++ jakarta/commons/proper/commons-parent/trunk/pom.xml Tue Mar 6 01:05:17 2007 @@ -21,7 +21,7 @@ parent groupIdorg.apache/groupId artifactIdapache/artifactId - version3/version + version4/version /parent groupIdorg.apache.commons/groupId artifactIdcommons-parent/artifactId - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Commons-Attributes 2.2 Corrupted Manifest
Hi Nico, nicolas de loof wrote on Tuesday, March 06, 2007 10:00 AM: I already asked for a 2.2.1 release to remove those -Extension in manifest, as they break running my app under tomcat 4. Those libs are only required by the compiler jar, not the api (runtime) jar, tho they can be removed from the manifest. This manifest is hand-writen and is included during the ant build. Building with maven doesn't include it. @see http://www.mail-archive.com/commons-dev@jakarta.apache.org/msg 88665.html OK, so the entries itself are OK regarding manifest spec, but they cause the java runtime to start further actions that fail. According the spec these entries are used to define the dependencies for applets ... so I wonder also why they are present in this manifest at all. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[nightly build] id failed.
Failed build logs: /20070306/id.log - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED]: Project commons-jelly-tags-jsl-test (in module commons-jelly) failed
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 commons-jelly-tags-jsl-test has an issue affecting its community integration. This issue affects 1 projects, and has been outstanding for 67 runs. The current state of this project is 'Failed', with reason 'Build Failed'. For reference only, the following projects are affected by this: - commons-jelly-tags-jsl-test : Commons Jelly Full details are available at: http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-tags-jsl-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 exists, no need to add for property maven.jar.ant-optional. -DEBUG- Dependency on xml-xerces exists, no need to add for property maven.jar.xerces. -WARNING- Overriding Maven properties: [/usr/local/gump/public/workspace/commons-jelly/jelly-tags/jsl/build.properties] -DEBUG- (Gump generated) Maven Properties in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/jsl/build.properties -INFO- Failed with reason build failed -DEBUG- Maven POM in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/jsl/project.xml -DEBUG- Maven project properties in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/jsl/project.properties -INFO- Project Reports in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/jsl/target/test-reports The following work was performed: http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-tags-jsl-test/gump_work/build_commons-jelly_commons-jelly-tags-jsl-test.html Work Name: build_commons-jelly_commons-jelly-tags-jsl-test (Type: Build) Work ended in a state of : Failed Elapsed: 17 secs Command Line: maven --offline jar [Working Directory: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/jsl] CLASSPATH: /opt/jdk1.5/lib/tools.jar:/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/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/usr/local/gump/public/workspace/commons-cli-1.0.x/target/commons-cli-06032007.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-06032007.jar:/usr/local/gump/public/workspace/commons-jelly/target/commons-jelly-06032007.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/ant/target/commons-jelly-tags-ant-06032007.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/junit/target/commons-jelly-tags-junit-06032007.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/log/target/commons-jelly-tags-log-06032007.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/xml/target/commons-jelly-tags-xml-06032007.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-06032007.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-06032007.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-06032007.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/public/workspace/jaxen/target/jaxen-06032007.jar:/usr/local/gump/public/workspace/xml-commons/java/external/build/xml-apis-ext.jar - [junit] at org.apache.commons.jelly.tags.junit.AssertTagSupport.fail(AssertTagSupport.java:64) [junit] at org.apache.commons.jelly.tags.junit.AssertTag.doTag(AssertTag.java:59) [junit] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:263) [junit] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:96) [junit] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:187) [junit] at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:66) [junit] at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:113) [junit] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:96) [junit] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:187) [junit] at org.apache.commons.jelly.tags.jsl.TemplateTag$1.run(TemplateTag.java:161) [junit] at org.dom4j.rule.Mode.fireRule(Mode.java:59) [junit] at org.dom4j.rule.Mode.applyTemplates(Mode.java:80) [junit] at org.dom4j.rule.RuleManager$1.run(RuleManager.java:171) [junit]
[EMAIL PROTECTED]: Project commons-jelly-tags-jsl-test (in module commons-jelly) failed
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 commons-jelly-tags-jsl-test has an issue affecting its community integration. This issue affects 1 projects, and has been outstanding for 67 runs. The current state of this project is 'Failed', with reason 'Build Failed'. For reference only, the following projects are affected by this: - commons-jelly-tags-jsl-test : Commons Jelly Full details are available at: http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-tags-jsl-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 exists, no need to add for property maven.jar.ant-optional. -DEBUG- Dependency on xml-xerces exists, no need to add for property maven.jar.xerces. -WARNING- Overriding Maven properties: [/usr/local/gump/public/workspace/commons-jelly/jelly-tags/jsl/build.properties] -DEBUG- (Gump generated) Maven Properties in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/jsl/build.properties -INFO- Failed with reason build failed -DEBUG- Maven POM in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/jsl/project.xml -DEBUG- Maven project properties in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/jsl/project.properties -INFO- Project Reports in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/jsl/target/test-reports The following work was performed: http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-tags-jsl-test/gump_work/build_commons-jelly_commons-jelly-tags-jsl-test.html Work Name: build_commons-jelly_commons-jelly-tags-jsl-test (Type: Build) Work ended in a state of : Failed Elapsed: 17 secs Command Line: maven --offline jar [Working Directory: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/jsl] CLASSPATH: /opt/jdk1.5/lib/tools.jar:/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/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/usr/local/gump/public/workspace/commons-cli-1.0.x/target/commons-cli-06032007.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-06032007.jar:/usr/local/gump/public/workspace/commons-jelly/target/commons-jelly-06032007.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/ant/target/commons-jelly-tags-ant-06032007.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/junit/target/commons-jelly-tags-junit-06032007.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/log/target/commons-jelly-tags-log-06032007.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/xml/target/commons-jelly-tags-xml-06032007.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-06032007.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-06032007.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-06032007.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/public/workspace/jaxen/target/jaxen-06032007.jar:/usr/local/gump/public/workspace/xml-commons/java/external/build/xml-apis-ext.jar - [junit] at org.apache.commons.jelly.tags.junit.AssertTagSupport.fail(AssertTagSupport.java:64) [junit] at org.apache.commons.jelly.tags.junit.AssertTag.doTag(AssertTag.java:59) [junit] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:263) [junit] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:96) [junit] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:187) [junit] at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:66) [junit] at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:113) [junit] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:96) [junit] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:187) [junit] at org.apache.commons.jelly.tags.jsl.TemplateTag$1.run(TemplateTag.java:161) [junit] at org.dom4j.rule.Mode.fireRule(Mode.java:59) [junit] at org.dom4j.rule.Mode.applyTemplates(Mode.java:80) [junit] at org.dom4j.rule.RuleManager$1.run(RuleManager.java:171) [junit]
[EMAIL PROTECTED]: Project commons-jelly-tags-fmt-test (in module commons-jelly) failed
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 commons-jelly-tags-fmt-test has an issue affecting its community integration. This issue affects 1 projects, and has been outstanding for 67 runs. The current state of this project is 'Failed', with reason 'Build Failed'. For reference only, the following projects are affected by this: - commons-jelly-tags-fmt-test : Commons Jelly Full details are available at: http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-tags-fmt-test/index.html That said, some information snippets are provided here. The following annotations (debug/informational/warning/error messages) were provided: -DEBUG- Dependency on xml-xerces exists, no need to add for property maven.jar.xerces. -WARNING- Overriding Maven properties: [/usr/local/gump/public/workspace/commons-jelly/jelly-tags/fmt/build.properties] -DEBUG- (Gump generated) Maven Properties in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/fmt/build.properties -INFO- Failed with reason build failed -DEBUG- Maven POM in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/fmt/project.xml -DEBUG- Maven project properties in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/fmt/project.properties -INFO- Project Reports in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/fmt/target/test-reports The following work was performed: http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-tags-fmt-test/gump_work/build_commons-jelly_commons-jelly-tags-fmt-test.html Work Name: build_commons-jelly_commons-jelly-tags-fmt-test (Type: Build) Work ended in a state of : Failed Elapsed: 16 secs Command Line: maven --offline jar [Working Directory: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/fmt] CLASSPATH: /opt/jdk1.5/lib/tools.jar:/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/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/beanutils/dist/commons-beanutils-core.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-06032007.jar:/usr/local/gump/public/workspace/commons-jelly/target/commons-jelly-06032007.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/ant/target/commons-jelly-tags-ant-06032007.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/beanshell/target/commons-jelly-tags-beanshell-06032007.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/junit/target/commons-jelly-tags-junit-06032007.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-06032007.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-06032007.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-06032007.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/public/workspace/jaxen/target/jaxen-06032007.jar:/usr/local/gump/public/workspace/xml-commons/java/external/build/xml-apis-ext.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/fmt/target/commons-jelly-tags-fmt-06032007.jar - [junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) [junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) [junit] at java.net.URLClassLoader.access$100(URLClassLoader.java:56) [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:195) [junit] at java.security.AccessController.doPrivileged(Native Method) [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:188) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:251) [junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) [junit] at org.apache.commons.jelly.tags.ant.AntTagLibrary.createProject(AntTagLibrary.java:128)
[EMAIL PROTECTED]: Project commons-jelly-tags-fmt-test (in module commons-jelly) failed
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 commons-jelly-tags-fmt-test has an issue affecting its community integration. This issue affects 1 projects, and has been outstanding for 67 runs. The current state of this project is 'Failed', with reason 'Build Failed'. For reference only, the following projects are affected by this: - commons-jelly-tags-fmt-test : Commons Jelly Full details are available at: http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-tags-fmt-test/index.html That said, some information snippets are provided here. The following annotations (debug/informational/warning/error messages) were provided: -DEBUG- Dependency on xml-xerces exists, no need to add for property maven.jar.xerces. -WARNING- Overriding Maven properties: [/usr/local/gump/public/workspace/commons-jelly/jelly-tags/fmt/build.properties] -DEBUG- (Gump generated) Maven Properties in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/fmt/build.properties -INFO- Failed with reason build failed -DEBUG- Maven POM in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/fmt/project.xml -DEBUG- Maven project properties in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/fmt/project.properties -INFO- Project Reports in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/fmt/target/test-reports The following work was performed: http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-tags-fmt-test/gump_work/build_commons-jelly_commons-jelly-tags-fmt-test.html Work Name: build_commons-jelly_commons-jelly-tags-fmt-test (Type: Build) Work ended in a state of : Failed Elapsed: 16 secs Command Line: maven --offline jar [Working Directory: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/fmt] CLASSPATH: /opt/jdk1.5/lib/tools.jar:/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/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/beanutils/dist/commons-beanutils-core.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-06032007.jar:/usr/local/gump/public/workspace/commons-jelly/target/commons-jelly-06032007.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/ant/target/commons-jelly-tags-ant-06032007.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/beanshell/target/commons-jelly-tags-beanshell-06032007.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/junit/target/commons-jelly-tags-junit-06032007.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-06032007.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-06032007.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-06032007.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/public/workspace/jaxen/target/jaxen-06032007.jar:/usr/local/gump/public/workspace/xml-commons/java/external/build/xml-apis-ext.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/fmt/target/commons-jelly-tags-fmt-06032007.jar - [junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) [junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) [junit] at java.net.URLClassLoader.access$100(URLClassLoader.java:56) [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:195) [junit] at java.security.AccessController.doPrivileged(Native Method) [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:188) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:251) [junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) [junit] at org.apache.commons.jelly.tags.ant.AntTagLibrary.createProject(AntTagLibrary.java:128)
Re: Commons-Attributes 2.2 Corrupted Manifest
On 3/6/07, nicolas de loof [EMAIL PROTECTED] wrote: I already asked for a 2.2.1 release to remove those -Extension in manifest, as they break running my app under tomcat 4. Those libs are only required by the compiler jar, not the api (runtime) jar, tho they can be removed from the manifest. This manifest is hand-written and is included during the ant build. Building with maven doesn't include it. It isn't hand-written btw. It came from the Maven build and was put in SVN for the Ant build to use. Hen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Created: (FILEUPLOAD-127) distribution mirrors looking for commons-fileupload-1.2.tar.gz but file is named commons-fileupload-1.2-bin.tar.gz
distribution mirrors looking for commons-fileupload-1.2.tar.gz but file is named commons-fileupload-1.2-bin.tar.gz -- Key: FILEUPLOAD-127 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-127 Project: Commons FileUpload Issue Type: Bug Environment: all Reporter: Ron Ridgely Fix For: 1.2 Distribution mirrors looking for commons-fileupload-1.2.tar.gz but file is named commons-fileupload-1.2-bin.tar.gz -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Commons-Attributes 2.2 Corrupted Manifest
You're right, sorry for this mistake. The maven generated manifest was using a maven option to declare dependencies as extensions-list. this option is not set in the project properties, so it may has been set on the computer used to generate the manifest. According to maven doc This can cause some applications to break, so it has been disabled by default. The project also is configured to use target=1.4. I'm using commons-attributes on java 1.3 and have compiled the 2.2 version on java 1.3without any issue. I did not searched the cvs log to know why it has been set. 2007/3/6, Henri Yandell [EMAIL PROTECTED]: On 3/6/07, nicolas de loof [EMAIL PROTECTED] wrote: I already asked for a 2.2.1 release to remove those -Extension in manifest, as they break running my app under tomcat 4. Those libs are only required by the compiler jar, not the api (runtime) jar, tho they can be removed from the manifest. This manifest is hand-written and is included during the ant build. Building with maven doesn't include it. It isn't hand-written btw. It came from the Maven build and was put in SVN for the Ant build to use. Hen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r515276 - /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java
Author: luc Date: Tue Mar 6 12:03:37 2007 New Revision: 515276 URL: http://svn.apache.org/viewvc?view=revrev=515276 Log: added constant for null vector Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java?view=diffrev=515276r1=515275r2=515276 == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java (original) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java Tue Mar 6 12:03:37 2007 @@ -28,23 +28,26 @@ public class Vector3D implements Serializable { - /** First canonical vector (coordinates : 1, 0, 0). */ + /** First canonical vector (coordinates: 1, 0, 0). */ public static final Vector3D plusI = new Vector3D(1, 0, 0); - /** Opposite of the first canonical vector (coordinates : -1, 0, 0). */ + /** Opposite of the first canonical vector (coordinates: -1, 0, 0). */ public static final Vector3D minusI = new Vector3D(-1, 0, 0); - /** Second canonical vector (coordinates : 0, 1, 0). */ + /** Second canonical vector (coordinates: 0, 1, 0). */ public static final Vector3D plusJ = new Vector3D(0, 1, 0); - /** Opposite of the second canonical vector (coordinates : 0, -1, 0). */ + /** Opposite of the second canonical vector (coordinates: 0, -1, 0). */ public static final Vector3D minusJ = new Vector3D(0, -1, 0); - /** Third canonical vector (coordinates : 0, 0, 1). */ + /** Third canonical vector (coordinates: 0, 0, 1). */ public static final Vector3D plusK = new Vector3D(0, 0, 1); - /** Opposite of the third canonical vector (coordinates : 0, 0, -1). */ + /** Opposite of the third canonical vector (coordinates: 0, 0, -1). */ public static final Vector3D minusK = new Vector3D(0, 0, -1); + + /** Null vector (coordinates: 0, 0, 0). */ + public static final Vector3D zero = new Vector3D(0, 0, 0); /** Simple constructor. * Build a null vector. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r515303 - in /jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci: listeners/ReloadingListener.java stores/FileResourceStore.java
Author: tcurdt Date: Tue Mar 6 13:08:49 2007 New Revision: 515303 URL: http://svn.apache.org/viewvc?view=revrev=515303 Log: hopefully make windows happy Modified: jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/stores/FileResourceStore.java Modified: jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java?view=diffrev=515303r1=515302r2=515303 == --- jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java (original) +++ jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java Tue Mar 6 13:08:49 2007 @@ -91,12 +91,16 @@ if (created.size() 0) { for (Iterator it = created.iterator(); it.hasNext();) { final File file = (File) it.next(); +FileInputStream is = null; try { -final byte[] bytes = IOUtils.toByteArray(new FileInputStream(file)); + is = new FileInputStream(file); +final byte[] bytes = IOUtils.toByteArray(is); final String resourceName = getResourceNameFromRelativeFileName(ClassUtils.relative(pObserver.getRootDirectory(), file)); store.write(resourceName, bytes); } catch(final Exception e) { log.error(could not load + file, e); +} finally { + IOUtils.closeQuietly(is); } } } @@ -104,12 +108,16 @@ if (changed.size() 0) { for (Iterator it = changed.iterator(); it.hasNext();) { final File file = (File) it.next(); +FileInputStream is = null; try { + is = new FileInputStream(file); final byte[] bytes = IOUtils.toByteArray(new FileInputStream(file)); final String resourceName = getResourceNameFromRelativeFileName(ClassUtils.relative(pObserver.getRootDirectory(), file)); store.write(resourceName, bytes); } catch(final Exception e) { log.error(could not load + file, e); +} finally { + IOUtils.closeQuietly(is); } } reload = true; Modified: jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/stores/FileResourceStore.java URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/stores/FileResourceStore.java?view=diffrev=515303r1=515302r2=515303 == --- jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/stores/FileResourceStore.java (original) +++ jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/stores/FileResourceStore.java Tue Mar 6 13:08:49 2007 @@ -18,13 +18,13 @@ import java.io.File; import java.io.FileInputStream; -import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.ArrayList; import java.util.List; + import org.apache.commons.io.IOUtils; @@ -45,21 +45,11 @@ is = new FileInputStream(getFile(pResourceName)); final byte[] data = IOUtils.toByteArray(is); return data; -} catch (FileNotFoundException e) { - // TODO -} catch (IOException e) { - // TODO +} catch (Exception e) { + return null; } finally { -if (is != null) { -try { -is.close(); -} catch (IOException e) { - //TODO -} -} + IOUtils.closeQuietly(is); } - -return null; } public void write( final String pResourceName, final byte[] pData ) { @@ -74,18 +64,10 @@ } os = new FileOutputStream(file); os.write(pData); -} catch (FileNotFoundException e) { - // TODO -} catch (IOException e) { - // TODO +} catch (Exception e) { + // FIXME: now what? } finally { -if (os != null) { -try { -os.close(); -} catch (IOException e) { - //TODO -} -
svn commit: r515306 - in /jakarta/commons/proper/configuration/trunk: ./ src/java/org/apache/commons/configuration/ src/java/org/apache/commons/configuration/web/ src/test/org/apache/commons/configura
Author: oheger Date: Tue Mar 6 13:15:00 2007 New Revision: 515306 URL: http://svn.apache.org/viewvc?view=revrev=515306 Log: CONFIGURATION-256: MapConfiguration and the web-based configurations now treat escaped list delimiters correctly Modified: jakarta/commons/proper/configuration/trunk/RELEASE-NOTES.txt jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/MapConfiguration.java jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/web/AppletConfiguration.java jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/web/BaseWebConfiguration.java jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/web/ServletConfiguration.java jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/web/ServletContextConfiguration.java jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/web/ServletFilterConfiguration.java jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/web/ServletRequestConfiguration.java jakarta/commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestAbstractConfiguration.java jakarta/commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestMapConfiguration.java jakarta/commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/web/TestAppletConfiguration.java jakarta/commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/web/TestServletConfiguration.java jakarta/commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/web/TestServletContextConfiguration.java jakarta/commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/web/TestServletFilterConfiguration.java jakarta/commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/web/TestServletRequestConfiguration.java jakarta/commons/proper/configuration/trunk/xdocs/changes.xml Modified: jakarta/commons/proper/configuration/trunk/RELEASE-NOTES.txt URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/RELEASE-NOTES.txt?view=diffrev=515306r1=515305r2=515306 == --- jakarta/commons/proper/configuration/trunk/RELEASE-NOTES.txt (original) +++ jakarta/commons/proper/configuration/trunk/RELEASE-NOTES.txt Tue Mar 6 13:15:00 2007 @@ -94,6 +94,11 @@ DatabaseConfiguration now handles list delimiters in property values correctly. +* [CONFIGURATION-256] + MapConfiguration and the web-based configurations now treat strings that + contain an escaped list delimiter correctly: The escape character will be + removed, so that for instance foo\,bar becomes foo,bar. + IMPROVEMENTS IN 1.4 === * [CONFIGURATION-155] Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/MapConfiguration.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/MapConfiguration.java?view=diffrev=515306r1=515305r2=515306 == --- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/MapConfiguration.java (original) +++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/MapConfiguration.java Tue Mar 6 13:15:00 2007 @@ -62,7 +62,7 @@ if ((value instanceof String) (!isDelimiterParsingDisabled())) { List list = PropertyConverter.split((String) value, getListDelimiter()); -return list.size() 1 ? list : value; +return list.size() 1 ? list : list.get(0); } else { Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/web/AppletConfiguration.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/web/AppletConfiguration.java?view=diffrev=515306r1=515305r2=515306 == --- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/web/AppletConfiguration.java (original) +++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/web/AppletConfiguration.java Tue Mar 6 13:15:00 2007 @@ -19,10 +19,8 @@ import java.applet.Applet; import java.util.Iterator; -import java.util.List; import org.apache.commons.collections.iterators.ArrayIterator; -import org.apache.commons.configuration.PropertyConverter; /** * A configuration wrapper to read applet parameters. This configuration is @@ -51,14 +49,7 @@ public Object getProperty(String key) { -
[jira] Resolved: (CONFIGURATION-256) MapConfiguration does not decode escaped Delimiters
[ https://issues.apache.org/jira/browse/CONFIGURATION-256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oliver Heger resolved CONFIGURATION-256. Resolution: Fixed Fix Version/s: 1.4 MapConfiguration and all the web-based configurations were updated to correctly remove the escaping character for the list delimiter. Additional tests were added to verify this behavior. Please double-check. Thanks. MapConfiguration does not decode escaped Delimiters --- Key: CONFIGURATION-256 URL: https://issues.apache.org/jira/browse/CONFIGURATION-256 Project: Commons Configuration Issue Type: Bug Affects Versions: 1.3 Environment: I think it does not matter because of pure java Reporter: Michal Polak Assigned To: Oliver Heger Fix For: 1.4 Hello, I don't know how to reopen resolved bug. See: https://issues.apache.org/jira/browse/CONFIGURATION-30 There is BAD implementation in MapConfiguration.getProperty(String key) method: As return value should be list.get(0) instead of value. PropertyConverter.split removes escape chars Suggested correction: public Object getProperty(String key) { Object value = map.get(key); if ((value instanceof String) (!isDelimiterParsingDisabled())) { List list = PropertyConverter.split((String) value, getListDelimiter()); //MP: return list.size() 1 ? list : value; return list.size() 1 ? list : list.get(0); //MP: split removes escape chars } else { return value; } } Test code: Map m = new HashMap(); m.put(foo, bar\\,baz); m.put(bar, bar, baz); MapConfiguration mc = new MapConfiguration(m); mc.setDelimiterParsingDisabled(false); mc.setListDelimiter(','); Configuration c = mc; String bad = c.getString(foo); //-- returns bar\\, baz expected bar, baz String ok = c.getString(bar); // -- returns bar System.err.println(Bad: + bad); System.err.println(OK: + ok); Current result is: Bad: bar\,baz OK: bar -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r515317 - in /jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/params: TestParamsAll.java TestSSLTunnelParams.java
Author: sebb Date: Tue Mar 6 13:41:04 2007 New Revision: 515317 URL: http://svn.apache.org/viewvc?view=revrev=515317 Log: Add svn:eol-style native Modified: jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/params/TestParamsAll.java (props changed) jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/params/TestSSLTunnelParams.java (props changed) Propchange: jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/params/TestParamsAll.java -- svn:eol-style = native Propchange: jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/params/TestSSLTunnelParams.java -- svn:eol-style = native - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r515323 - /jakarta/commons/sandbox/jci/trunk/core/pom.xml
Author: tcurdt Date: Tue Mar 6 14:23:32 2007 New Revision: 515323 URL: http://svn.apache.org/viewvc?view=revrev=515323 Log: log to console (at least it should) Modified: jakarta/commons/sandbox/jci/trunk/core/pom.xml Modified: jakarta/commons/sandbox/jci/trunk/core/pom.xml URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/core/pom.xml?view=diffrev=515323r1=515322r2=515323 == --- jakarta/commons/sandbox/jci/trunk/core/pom.xml (original) +++ jakarta/commons/sandbox/jci/trunk/core/pom.xml Tue Mar 6 14:23:32 2007 @@ -53,6 +53,19 @@ plugins plugin groupIdorg.apache.maven.plugins/groupId +artifactIdmaven-surefire-plugin/artifactId +configuration +useFilefalse/useFile +systemProperties +property +nameorg.apache.commons.logging.Log/name + valueorg.apache.commons.logging.impl.SimpleLog/value +/property +/systemProperties +/configuration +/plugin +plugin +groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId executions execution - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Commented: (FILEUPLOAD-127) distribution mirrors looking for commons-fileupload-1.2.tar.gz but file is named commons-fileupload-1.2-bin.tar.gz
[ https://issues.apache.org/jira/browse/FILEUPLOAD-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478615 ] Jochen Wiedmann commented on FILEUPLOAD-127: Are you referring to a broken link? If so, on what page? distribution mirrors looking for commons-fileupload-1.2.tar.gz but file is named commons-fileupload-1.2-bin.tar.gz -- Key: FILEUPLOAD-127 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-127 Project: Commons FileUpload Issue Type: Bug Environment: all Reporter: Ron Ridgely Fix For: 1.2 Distribution mirrors looking for commons-fileupload-1.2.tar.gz but file is named commons-fileupload-1.2-bin.tar.gz -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r515341 - in /jakarta/commons/sandbox/jci/trunk/core/src: main/java/org/apache/commons/jci/listeners/ReloadingListener.java test/java/org/apache/commons/jci/ReloadingClassLoaderTestCase.ja
Author: tcurdt Date: Tue Mar 6 14:59:27 2007 New Revision: 515341 URL: http://svn.apache.org/viewvc?view=revrev=515341 Log: argh! wrong separator Modified: jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java jakarta/commons/sandbox/jci/trunk/core/src/test/java/org/apache/commons/jci/ReloadingClassLoaderTestCase.java Modified: jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java?view=diffrev=515341r1=515340r2=515341 == --- jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java (original) +++ jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java Tue Mar 6 14:59:27 2007 @@ -63,11 +63,11 @@ } public String getResourceNameFromRelativeFileName( final String pRelativeFileName ) { - if ('/' == File.pathSeparatorChar) { + if ('/' == File.separatorChar) { return pRelativeFileName; } - return pRelativeFileName.replace(File.pathSeparatorChar, '/'); + return pRelativeFileName.replace(File.separatorChar, '/'); } public boolean isReloadRequired( final FilesystemAlterationObserver pObserver ) { Modified: jakarta/commons/sandbox/jci/trunk/core/src/test/java/org/apache/commons/jci/ReloadingClassLoaderTestCase.java URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/core/src/test/java/org/apache/commons/jci/ReloadingClassLoaderTestCase.java?view=diffrev=515341r1=515340r2=515341 == --- jakarta/commons/sandbox/jci/trunk/core/src/test/java/org/apache/commons/jci/ReloadingClassLoaderTestCase.java (original) +++ jakarta/commons/sandbox/jci/trunk/core/src/test/java/org/apache/commons/jci/ReloadingClassLoaderTestCase.java Tue Mar 6 14:59:27 2007 @@ -142,7 +142,6 @@ classloader.loadClass(bla); fail(); } catch(final ClassNotFoundException e) { -log.info(e.getMessage()); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r515350 - in /jakarta/commons/sandbox/jci/trunk/core: pom.xml src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java
Author: tcurdt Date: Tue Mar 6 15:16:34 2007 New Revision: 515350 URL: http://svn.apache.org/viewvc?view=revrev=515350 Log: indenting, remove the surefire config that unfortunately does not work :( Modified: jakarta/commons/sandbox/jci/trunk/core/pom.xml jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java Modified: jakarta/commons/sandbox/jci/trunk/core/pom.xml URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/core/pom.xml?view=diffrev=515350r1=515349r2=515350 == --- jakarta/commons/sandbox/jci/trunk/core/pom.xml (original) +++ jakarta/commons/sandbox/jci/trunk/core/pom.xml Tue Mar 6 15:16:34 2007 @@ -53,19 +53,6 @@ plugins plugin groupIdorg.apache.maven.plugins/groupId -artifactIdmaven-surefire-plugin/artifactId -configuration -useFilefalse/useFile -systemProperties -property -nameorg.apache.commons.logging.Log/name - valueorg.apache.commons.logging.impl.SimpleLog/value -/property -/systemProperties -/configuration -/plugin -plugin -groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId executions execution Modified: jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java?view=diffrev=515350r1=515349r2=515350 == --- jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java (original) +++ jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java Tue Mar 6 15:16:34 2007 @@ -96,7 +96,7 @@ is = new FileInputStream(file); final byte[] bytes = IOUtils.toByteArray(is); final String resourceName = getResourceNameFromRelativeFileName(ClassUtils.relative(pObserver.getRootDirectory(), file)); - store.write(resourceName, bytes); +store.write(resourceName, bytes); } catch(final Exception e) { log.error(could not load + file, e); } finally { - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r515354 - /jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java
Author: tcurdt Date: Tue Mar 6 15:25:03 2007 New Revision: 515354 URL: http://svn.apache.org/viewvc?view=revrev=515354 Log: use the stream that gets closed Modified: jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java Modified: jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java?view=diffrev=515354r1=515353r2=515354 == --- jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java (original) +++ jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java Tue Mar 6 15:25:03 2007 @@ -111,7 +111,7 @@ FileInputStream is = null; try { is = new FileInputStream(file); -final byte[] bytes = IOUtils.toByteArray(new FileInputStream(file)); +final byte[] bytes = IOUtils.toByteArray(is); final String resourceName = getResourceNameFromRelativeFileName(ClassUtils.relative(pObserver.getRootDirectory(), file)); store.write(resourceName, bytes); } catch(final Exception e) { - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r515365 - /jakarta/commons/sandbox/jci/trunk/compilers/javac/src/test/java/org/apache/commons/jci/compilers/JavacJavaCompilerTestCase.java
Author: tcurdt Date: Tue Mar 6 15:37:46 2007 New Revision: 515365 URL: http://svn.apache.org/viewvc?view=revrev=515365 Log: fail a test if javac is not in the classpath Modified: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/test/java/org/apache/commons/jci/compilers/JavacJavaCompilerTestCase.java Modified: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/test/java/org/apache/commons/jci/compilers/JavacJavaCompilerTestCase.java URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/compilers/javac/src/test/java/org/apache/commons/jci/compilers/JavacJavaCompilerTestCase.java?view=diffrev=515365r1=515364r2=515365 == --- jakarta/commons/sandbox/jci/trunk/compilers/javac/src/test/java/org/apache/commons/jci/compilers/JavacJavaCompilerTestCase.java (original) +++ jakarta/commons/sandbox/jci/trunk/compilers/javac/src/test/java/org/apache/commons/jci/compilers/JavacJavaCompilerTestCase.java Tue Mar 6 15:37:46 2007 @@ -10,4 +10,16 @@ return javac; } + public void testForToolsJar() { + try { + Class.forName(com.sun.tools.javac.Main); + } catch (ClassNotFoundException e) { + final StringBuffer sb = new StringBuffer(); + sb.append(Could not find javac compiler class (should be in the tools.jar/classes.jar in your JRE/JDK). ); + sb.append(os.name).append('=').append(System.getProperty(os.name)).append(, ); + sb.append(os.version).append('=').append(System.getProperty(os.version)).append(, ); + sb.append(java.class.path).append('=').append(System.getProperty(java.class.path)); + fail(sb.toString()); + } + } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r515379 - in /jakarta/commons/sandbox/jci/trunk/compilers/javac/src: main/java/org/apache/commons/jci/compilers/JavacClassLoader.java test/java/org/apache/commons/jci/compilers/JavacJavaCo
Author: tcurdt Date: Tue Mar 6 16:01:35 2007 New Revision: 515379 URL: http://svn.apache.org/viewvc?view=revrev=515379 Log: check for the tools jar Modified: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/JavacClassLoader.java jakarta/commons/sandbox/jci/trunk/compilers/javac/src/test/java/org/apache/commons/jci/compilers/JavacJavaCompilerTestCase.java Modified: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/JavacClassLoader.java URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/JavacClassLoader.java?view=diffrev=515379r1=515378r2=515379 == --- jakarta/commons/sandbox/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/JavacClassLoader.java (original) +++ jakarta/commons/sandbox/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/JavacClassLoader.java Tue Mar 6 16:01:35 2007 @@ -1,9 +1,14 @@ package org.apache.commons.jci.compilers; +import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; +import java.net.MalformedURLException; +import java.net.URL; +import java.net.URLClassLoader; +import java.util.Locale; import org.objectweb.asm.ClassReader; import org.objectweb.asm.ClassWriter; @@ -11,10 +16,46 @@ import org.vafer.dependency.asm.RenamingVisitor; import org.vafer.dependency.utils.ResourceRenamer; -public final class JavacClassLoader extends ClassLoader { +public final class JavacClassLoader extends URLClassLoader { + + + private static URL[] getToolsJar() { + try { + Class.forName(com.sun.tools.javac.Main); + + // found - no addtional classpath entry required + return new URL[0]; + + } catch (Exception e) { + } + + // no compiler in current classpath, let's try to find the tools.jar + + String javaHome = System.getProperty(java.home); + if (javaHome.toLowerCase(Locale.US).endsWith(File.separator + jre)) { + javaHome = javaHome.substring(0, javaHome.length()-4); + } + + final File toolsJar = new File(javaHome + /lib/tools.jar); + + if (toolsJar.exists()) { + try { + return new URL[] { toolsJar.toURL() }; + } catch (MalformedURLException e) { + } + } + + final StringBuffer sb = new StringBuffer(); + sb.append(Could not find javac compiler class (should be in the tools.jar/classes.jar in your JRE/JDK). ); + sb.append(os.name).append('=').append(System.getProperty(os.name)).append(, ); + sb.append(os.version).append('=').append(System.getProperty(os.version)).append(, ); + sb.append(java.class.path).append('=').append(System.getProperty(java.class.path)); + + throw new RuntimeException(sb.toString()); + } public JavacClassLoader( final ClassLoader pParent ) { - super(pParent); + super(getToolsJar(), pParent); } protected Class findClass( final String name ) throws ClassNotFoundException { Modified: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/test/java/org/apache/commons/jci/compilers/JavacJavaCompilerTestCase.java URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/compilers/javac/src/test/java/org/apache/commons/jci/compilers/JavacJavaCompilerTestCase.java?view=diffrev=515379r1=515378r2=515379 == --- jakarta/commons/sandbox/jci/trunk/compilers/javac/src/test/java/org/apache/commons/jci/compilers/JavacJavaCompilerTestCase.java (original) +++ jakarta/commons/sandbox/jci/trunk/compilers/javac/src/test/java/org/apache/commons/jci/compilers/JavacJavaCompilerTestCase.java Tue Mar 6 16:01:35 2007 @@ -10,16 +10,4 @@ return javac; } - public void testForToolsJar() { - try { - Class.forName(com.sun.tools.javac.Main); - } catch (ClassNotFoundException e) { - final StringBuffer sb = new StringBuffer(); - sb.append(Could not find javac compiler class (should be in the tools.jar/classes.jar in your JRE/JDK). ); - sb.append(os.name).append('=').append(System.getProperty(os.name)).append(, ); -
svn commit: r515388 - in /jakarta/commons/sandbox/jci/trunk: compilers/javac/src/main/java/org/apache/commons/jci/compilers/ core/src/main/java/org/apache/commons/jci/listeners/ core/src/main/java/org
Author: tcurdt Date: Tue Mar 6 16:18:01 2007 New Revision: 515388 URL: http://svn.apache.org/viewvc?view=revrev=515388 Log: move out some \ - / conversion into utils, hopefully fixed javac now under windows Modified: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/FileInputStreamProxy.java jakarta/commons/sandbox/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/FileOutputStreamProxy.java jakarta/commons/sandbox/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/JavacJavaCompiler.java jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/CompilingListener.java jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/listeners/ReloadingListener.java jakarta/commons/sandbox/jci/trunk/core/src/main/java/org/apache/commons/jci/utils/ClassUtils.java Modified: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/FileInputStreamProxy.java URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/FileInputStreamProxy.java?view=diffrev=515388r1=515387r2=515388 == --- jakarta/commons/sandbox/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/FileInputStreamProxy.java (original) +++ jakarta/commons/sandbox/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/FileInputStreamProxy.java Tue Mar 6 16:18:01 2007 @@ -8,6 +8,7 @@ import java.io.InputStream; import org.apache.commons.jci.readers.ResourceReader; +import org.apache.commons.jci.utils.ClassUtils; public class FileInputStreamProxy extends InputStream { @@ -29,7 +30,7 @@ } public FileInputStreamProxy(String pName) throws FileNotFoundException { - name = pName; + name = ClassUtils.getResourceNameFromFileName(pName); final ResourceReader reader = (ResourceReader) readerThreadLocal.get(); @@ -37,7 +38,13 @@ throw new RuntimeException(forgot to set the ResourceReader for this thread?); } - in = new ByteArrayInputStream(reader.getBytes(name)); + final byte[] bytes = reader.getBytes(name); + + if (bytes == null) { + throw new FileNotFoundException(name); + } + + in = new ByteArrayInputStream(bytes); } public int read() throws IOException { Modified: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/FileOutputStreamProxy.java URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/FileOutputStreamProxy.java?view=diffrev=515388r1=515387r2=515388 == --- jakarta/commons/sandbox/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/FileOutputStreamProxy.java (original) +++ jakarta/commons/sandbox/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/FileOutputStreamProxy.java Tue Mar 6 16:18:01 2007 @@ -8,6 +8,7 @@ import java.io.OutputStream; import org.apache.commons.jci.stores.ResourceStore; +import org.apache.commons.jci.utils.ClassUtils; public class FileOutputStreamProxy extends OutputStream { @@ -39,7 +40,7 @@ } public FileOutputStreamProxy(String pName) throws FileNotFoundException { - name = pName; + name = ClassUtils.getResourceNameFromFileName(pName); } public void write(int value) throws IOException { Modified: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/JavacJavaCompiler.java URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/JavacJavaCompiler.java?view=diffrev=515388r1=515387r2=515388 == --- jakarta/commons/sandbox/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/JavacJavaCompiler.java (original) +++ jakarta/commons/sandbox/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/JavacJavaCompiler.java Tue Mar 6 16:18:01 2007 @@ -17,7 +17,7 @@ public final class JavacJavaCompiler extends AbstractJavaCompiler { - private static final String EOL = System.getProperty(line.separator);; + private static final String EOL = System.getProperty(line.separator); private static final String WARNING_PREFIX = warning: ; private static final String NOTE_PREFIX = Note:
[jira] Resolved: (FILEUPLOAD-127) distribution mirrors looking for commons-fileupload-1.2.tar.gz but file is named commons-fileupload-1.2-bin.tar.gz
[ https://issues.apache.org/jira/browse/FILEUPLOAD-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niall Pemberton resolved FILEUPLOAD-127. Resolution: Fixed Fixed thanks http://svn.apache.org/viewvc?view=revrevision=515366 distribution mirrors looking for commons-fileupload-1.2.tar.gz but file is named commons-fileupload-1.2-bin.tar.gz -- Key: FILEUPLOAD-127 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-127 Project: Commons FileUpload Issue Type: Bug Environment: all Reporter: Ron Ridgely Fix For: 1.2 Distribution mirrors looking for commons-fileupload-1.2.tar.gz but file is named commons-fileupload-1.2-bin.tar.gz -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]