Re: [ANNOUNCEMENT] Commons Pool 1.3 Released

2006-04-03 Thread Sandy McArthur
On 4/2/06, Wendy Smoak [EMAIL PROTECTED] wrote:
 On 4/2/06, Sandy McArthur [EMAIL PROTECTED] wrote:
  The Commons Pool team is pleased to announce the release of Pool
  1.3.
 ...
  Download:
  http://jakarta.apache.org/commons/pool/downloads.html

 Sandy,

 I see it in www.apache.org/dist, but the download page still has links
 to version 1.2:
http://jakarta.apache.org/site/downloads/downloads_commons-pool.cgi

Fixed, thanks for the heads up.

--
Sandy McArthur

He who dares not offend cannot be honest.
- Thomas Paine

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



[EMAIL PROTECTED]: Project commons-chain (in module jakarta-commons) failed

2006-04-03 Thread Stefan Bodewig
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-chain has an issue affecting its community integration.
This issue affects 8 projects,
 and has been outstanding for 58 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- commons-chain :  GoF Chain of Responsibility pattern
- commons-jelly-tags-quartz :  Commons Jelly
- fulcrum-quartz :  Services Framework
- myfaces :  JavaServer(tm) Faces implementation
- portals-bridges-jsf :  Support for JSR168 compliant Portlet development
- quartz :  Job Scheduler
- struts-action :  Model 2 Model-View-Controller framework for Servlets and 
JSP
- struts-tiles :  Model 2 Model-View-Controller framework for Servlets and 
JSP


Full details are available at:

http://vmgump.apache.org/gump/public/jakarta-commons/commons-chain/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Sole output [commons-chain-03042006.jar] identifier set to project name
 -INFO- Failed with reason build failed
 -INFO- Failed to extract fallback artifacts from Gump Repository



The following work was performed:
http://vmgump.apache.org/gump/public/jakarta-commons/commons-chain/gump_work/build_jakarta-commons_commons-chain.html
Work Name: build_jakarta-commons_commons-chain (Type: Build)
Work ended in a state of : Failed
Elapsed: 17 secs
Command Line: 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 -Dfinal.name=commons-chain-03042006 -f build.xml jar 
[Working Directory: /usr/local/gump/public/workspace/jakarta-commons/chain]
CLASSPATH: 
/opt/jdk1.5/lib/tools.jar:/usr/local/gump/public/workspace/jakarta-commons/chain/target/classes:/usr/local/gump/public/workspace/jakarta-commons/chain/target/test-classes:/usr/local/gump/packages/jsf-1_1_01/lib/jsf-api.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/junit3.8.1/junit.jar:/usr/local/gump/public/workspace/xml-commons/java/build/resolver.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/usr/local/gump/public/workspace/jakarta-commons/digester/dist/commons-digester.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-03042006.jar:/usr/local/gump/public/workspace/portals-pluto-1.0/api/target/portlet-api-1.0.jar:/usr/local/gump/public/workspace/jakarta-servletapi-4/lib/servlet.jar:/usr/local/gump/public/workspace/dist/junit/junit.jar
-
[junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0.291 sec
[junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0.291 sec

[junit] Testcase: testPristine took 0.037 sec
[junit] Testcase: testReadOnly took 0.002 sec
[junit] Testcase: testReadWrite took 0 sec
[junit] Testcase: testWriteOnly took 0.002 sec
[junit] Testcase: testAttributes took 0.001 sec
[junit] Testcase: testContains took 0 sec
[junit] Testcase: testEquals took 0.011 sec
[junit] Testcase: testKeySet took 0.001 sec
[junit] Testcase: testPutAll took 0.001 sec
[junit] Testcase: testSeriaization took 0.056 sec
[junit] Running org.apache.commons.chain.web.ChainResourcesTestCase
[junit] Testsuite: org.apache.commons.chain.web.ChainResourcesTestCase
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.242 sec
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.242 sec

[junit] Testcase: testGetPaths took 0.075 sec
[junit] Running 
org.apache.commons.chain.web.servlet.ServletGetLocaleCommandTestCase
[junit] Testsuite: 
org.apache.commons.chain.web.servlet.ServletGetLocaleCommandTestCase
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.237 sec
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.237 sec

[junit] Testcase: testConfigured took 0.058 sec
[junit] Testcase: testDefaut took 0.001 

[EMAIL PROTECTED]: Project commons-chain (in module jakarta-commons) failed

2006-04-03 Thread Stefan Bodewig
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-chain has an issue affecting its community integration.
This issue affects 8 projects,
 and has been outstanding for 58 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- commons-chain :  GoF Chain of Responsibility pattern
- commons-jelly-tags-quartz :  Commons Jelly
- fulcrum-quartz :  Services Framework
- myfaces :  JavaServer(tm) Faces implementation
- portals-bridges-jsf :  Support for JSR168 compliant Portlet development
- quartz :  Job Scheduler
- struts-action :  Model 2 Model-View-Controller framework for Servlets and 
JSP
- struts-tiles :  Model 2 Model-View-Controller framework for Servlets and 
JSP


Full details are available at:

http://vmgump.apache.org/gump/public/jakarta-commons/commons-chain/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Sole output [commons-chain-03042006.jar] identifier set to project name
 -INFO- Failed with reason build failed
 -INFO- Failed to extract fallback artifacts from Gump Repository



The following work was performed:
http://vmgump.apache.org/gump/public/jakarta-commons/commons-chain/gump_work/build_jakarta-commons_commons-chain.html
Work Name: build_jakarta-commons_commons-chain (Type: Build)
Work ended in a state of : Failed
Elapsed: 17 secs
Command Line: 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 -Dfinal.name=commons-chain-03042006 -f build.xml jar 
[Working Directory: /usr/local/gump/public/workspace/jakarta-commons/chain]
CLASSPATH: 
/opt/jdk1.5/lib/tools.jar:/usr/local/gump/public/workspace/jakarta-commons/chain/target/classes:/usr/local/gump/public/workspace/jakarta-commons/chain/target/test-classes:/usr/local/gump/packages/jsf-1_1_01/lib/jsf-api.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/junit3.8.1/junit.jar:/usr/local/gump/public/workspace/xml-commons/java/build/resolver.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/usr/local/gump/public/workspace/jakarta-commons/digester/dist/commons-digester.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-03042006.jar:/usr/local/gump/public/workspace/portals-pluto-1.0/api/target/portlet-api-1.0.jar:/usr/local/gump/public/workspace/jakarta-servletapi-4/lib/servlet.jar:/usr/local/gump/public/workspace/dist/junit/junit.jar
-
[junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0.291 sec
[junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0.291 sec

[junit] Testcase: testPristine took 0.037 sec
[junit] Testcase: testReadOnly took 0.002 sec
[junit] Testcase: testReadWrite took 0 sec
[junit] Testcase: testWriteOnly took 0.002 sec
[junit] Testcase: testAttributes took 0.001 sec
[junit] Testcase: testContains took 0 sec
[junit] Testcase: testEquals took 0.011 sec
[junit] Testcase: testKeySet took 0.001 sec
[junit] Testcase: testPutAll took 0.001 sec
[junit] Testcase: testSeriaization took 0.056 sec
[junit] Running org.apache.commons.chain.web.ChainResourcesTestCase
[junit] Testsuite: org.apache.commons.chain.web.ChainResourcesTestCase
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.242 sec
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.242 sec

[junit] Testcase: testGetPaths took 0.075 sec
[junit] Running 
org.apache.commons.chain.web.servlet.ServletGetLocaleCommandTestCase
[junit] Testsuite: 
org.apache.commons.chain.web.servlet.ServletGetLocaleCommandTestCase
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.237 sec
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.237 sec

[junit] Testcase: testConfigured took 0.058 sec
[junit] Testcase: testDefaut took 0.001 

[EMAIL PROTECTED]: Project commons-jelly-tags-xml-test (in module commons-jelly) failed

2006-04-03 Thread commons-jelly-tags-xml development
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-xml-test has an issue affecting its community 
integration.
This issue affects 1 projects,
 and has been outstanding for 64 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-xml-test :  Commons Jelly


Full details are available at:

http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-tags-xml-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/xml/build.properties]
 -DEBUG- (Gump generated) Maven Properties in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/xml/build.properties
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/xml/project.xml
 -DEBUG- Maven project properties in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/xml/project.properties
 -INFO- Project Reports in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/xml/target/test-reports



The following work was performed:
http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-tags-xml-test/gump_work/build_commons-jelly_commons-jelly-tags-xml-test.html
Work Name: build_commons-jelly_commons-jelly-tags-xml-test (Type: Build)
Work ended in a state of : Failed
Elapsed: 29 secs
Command Line: maven --offline jar 
[Working Directory: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/xml]
CLASSPATH: 
/opt/jdk1.5/lib/tools.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-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/target/commons-jelly-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/junit/target/commons-jelly-tags-junit-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-03042006.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/packages/jaxen-1.1-beta-4/jaxen-1.1-beta-4.jar
-
[junit] at 
org.apache.commons.jelly.tags.junit.CaseTag$1.runTest(CaseTag.java:59)
[junit] 
[junit] 
[junit] Testcase: 
testSetSingleNodeAndAsString(org.apache.commons.jelly.tags.junit.CaseTag$1):
  Caused an ERROR
[junit] 
file:/x1/gump/public/workspace/commons-jelly/jelly-tags/xml/target/test-classes/org/apache/commons/jelly/tags/xml/suite.jelly:294:81:
 x:set You must define an attribute called 'select' for this tag.
[junit] org.apache.commons.jelly.MissingAttributeException: 
file:/x1/gump/public/workspace/commons-jelly/jelly-tags/xml/target/test-classes/org/apache/commons/jelly/tags/xml/suite.jelly:294:81:
 x:set You must define an attribute called 'select' for this tag.
[junit] at 
org.apache.commons.jelly.tags.xml.SetTag.doTag(SetTag.java:86)
[junit] at 
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[junit] at 
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[junit] at 
org.apache.commons.jelly.tags.junit.CaseTag$1.runTest(CaseTag.java:59)
[junit] 
[junit] 
[junit] Testcase: 
testSetStringLists(org.apache.commons.jelly.tags.junit.CaseTag$1):
Caused an ERROR
[junit] 
file:/x1/gump/public/workspace/commons-jelly/jelly-tags/xml/target/test-classes/org/apache/commons/jelly/tags/xml/suite.jelly:339:82:
 x:set You must define an attribute called 'select' for this tag.
[junit] org.apache.commons.jelly.MissingAttributeException: 
file:/x1/gump/public/workspace/commons-jelly/jelly-tags/xml/target/test-classes/org/apache/commons/jelly/tags/xml/suite.jelly:339:82:
 x:set You must define an attribute called 'select' for this tag.
[junit] at 
org.apache.commons.jelly.tags.xml.SetTag.doTag(SetTag.java:86)
[junit] at 
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[junit] at 
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[junit] at 
org.apache.commons.jelly.tags.junit.CaseTag$1.runTest(CaseTag.java:59)
[junit] 
[junit] 
[junit] Testcase: 
testEntities(org.apache.commons.jelly.tags.junit.CaseTag$1):  Caused an 
ERROR
[junit] 

[EMAIL PROTECTED]: Project commons-jelly-tags-xml-test (in module commons-jelly) failed

2006-04-03 Thread commons-jelly-tags-xml development
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-xml-test has an issue affecting its community 
integration.
This issue affects 1 projects,
 and has been outstanding for 64 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-xml-test :  Commons Jelly


Full details are available at:

http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-tags-xml-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/xml/build.properties]
 -DEBUG- (Gump generated) Maven Properties in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/xml/build.properties
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/xml/project.xml
 -DEBUG- Maven project properties in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/xml/project.properties
 -INFO- Project Reports in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/xml/target/test-reports



The following work was performed:
http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-tags-xml-test/gump_work/build_commons-jelly_commons-jelly-tags-xml-test.html
Work Name: build_commons-jelly_commons-jelly-tags-xml-test (Type: Build)
Work ended in a state of : Failed
Elapsed: 29 secs
Command Line: maven --offline jar 
[Working Directory: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/xml]
CLASSPATH: 
/opt/jdk1.5/lib/tools.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-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/target/commons-jelly-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/junit/target/commons-jelly-tags-junit-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-03042006.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/packages/jaxen-1.1-beta-4/jaxen-1.1-beta-4.jar
-
[junit] at 
org.apache.commons.jelly.tags.junit.CaseTag$1.runTest(CaseTag.java:59)
[junit] 
[junit] 
[junit] Testcase: 
testSetSingleNodeAndAsString(org.apache.commons.jelly.tags.junit.CaseTag$1):
  Caused an ERROR
[junit] 
file:/x1/gump/public/workspace/commons-jelly/jelly-tags/xml/target/test-classes/org/apache/commons/jelly/tags/xml/suite.jelly:294:81:
 x:set You must define an attribute called 'select' for this tag.
[junit] org.apache.commons.jelly.MissingAttributeException: 
file:/x1/gump/public/workspace/commons-jelly/jelly-tags/xml/target/test-classes/org/apache/commons/jelly/tags/xml/suite.jelly:294:81:
 x:set You must define an attribute called 'select' for this tag.
[junit] at 
org.apache.commons.jelly.tags.xml.SetTag.doTag(SetTag.java:86)
[junit] at 
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[junit] at 
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[junit] at 
org.apache.commons.jelly.tags.junit.CaseTag$1.runTest(CaseTag.java:59)
[junit] 
[junit] 
[junit] Testcase: 
testSetStringLists(org.apache.commons.jelly.tags.junit.CaseTag$1):
Caused an ERROR
[junit] 
file:/x1/gump/public/workspace/commons-jelly/jelly-tags/xml/target/test-classes/org/apache/commons/jelly/tags/xml/suite.jelly:339:82:
 x:set You must define an attribute called 'select' for this tag.
[junit] org.apache.commons.jelly.MissingAttributeException: 
file:/x1/gump/public/workspace/commons-jelly/jelly-tags/xml/target/test-classes/org/apache/commons/jelly/tags/xml/suite.jelly:339:82:
 x:set You must define an attribute called 'select' for this tag.
[junit] at 
org.apache.commons.jelly.tags.xml.SetTag.doTag(SetTag.java:86)
[junit] at 
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[junit] at 
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[junit] at 
org.apache.commons.jelly.tags.junit.CaseTag$1.runTest(CaseTag.java:59)
[junit] 
[junit] 
[junit] Testcase: 
testEntities(org.apache.commons.jelly.tags.junit.CaseTag$1):  Caused an 
ERROR
[junit] 

[EMAIL PROTECTED]: Project commons-jelly-tags-html (in module commons-jelly) failed

2006-04-03 Thread commons-jelly-tags-html development
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-html has an issue affecting its community 
integration.
This issue affects 1 projects,
 and has been outstanding for 64 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-html :  Commons Jelly


Full details are available at:

http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-tags-html/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Sole output [commons-jelly-tags-html-03042006.jar] identifier set to 
project name
 -DEBUG- Dependency on xml-xerces exists, no need to add for property 
maven.jar.xerces.
 -DEBUG- (Gump generated) Maven Properties in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/html/build.properties
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/html/project.xml
 -DEBUG- Maven project properties in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/html/project.properties
 -INFO- Project Reports in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/html/target/test-reports
 -INFO- Failed to extract fallback artifacts from Gump Repository



The following work was performed:
http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-tags-html/gump_work/build_commons-jelly_commons-jelly-tags-html.html
Work Name: build_commons-jelly_commons-jelly-tags-html (Type: Build)
Work ended in a state of : Failed
Elapsed: 12 secs
Command Line: maven --offline jar 
[Working Directory: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/html]
CLASSPATH: 
/opt/jdk1.5/lib/tools.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/usr/local/gump/public/workspace/jakarta-commons/cli/target/commons-cli-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/target/commons-jelly-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/jsl/target/commons-jelly-tags-jsl-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/junit/target/commons-jelly-tags-junit-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/log/target/commons-jelly-tags-log-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/xml/target/commons-jelly-tags-xml-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-03042006.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/packages/jaxen-1.1-beta-4/jaxen-1.1-beta-4.jar:/usr/local/gump/packages/nekohtml-0.9.5/nekohtml.jar
-
[junit] at 
org.apache.commons.jelly.tags.junit.CaseTag$1.runTest(CaseTag.java:59)
[junit] 
[junit] 
[junit] Testcase: 
testLowerCase(org.apache.commons.jelly.tags.junit.CaseTag$1): Caused an 
ERROR
[junit] 
file:/x1/gump/public/workspace/commons-jelly/jelly-tags/html/target/test-classes/org/apache/commons/jelly/html/suite.jelly:40:48:
 test:assert You must define an attribute called 'test' for this tag.
[junit] org.apache.commons.jelly.MissingAttributeException: 
file:/x1/gump/public/workspace/commons-jelly/jelly-tags/html/target/test-classes/org/apache/commons/jelly/html/suite.jelly:40:48:
 test:assert You must define an attribute called 'test' for this tag.
[junit] at 
org.apache.commons.jelly.tags.junit.AssertTag.doTag(AssertTag.java:54)
[junit] at 
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[junit] at 
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[junit] at 
org.apache.commons.jelly.tags.junit.CaseTag$1.runTest(CaseTag.java:59)
[junit] 
[junit] 
[junit] Testcase: 
testMixedCase(org.apache.commons.jelly.tags.junit.CaseTag$1): Caused an 
ERROR
[junit] 
file:/x1/gump/public/workspace/commons-jelly/jelly-tags/html/target/test-classes/org/apache/commons/jelly/html/suite.jelly:47:48:
 test:assert You must define an attribute called 'test' for this tag.
[junit] org.apache.commons.jelly.MissingAttributeException: 
file:/x1/gump/public/workspace/commons-jelly/jelly-tags/html/target/test-classes/org/apache/commons/jelly/html/suite.jelly:47:48:
 test:assert You must define an attribute called 'test' for this tag.
[junit] at 

[EMAIL PROTECTED]: Project commons-jelly-tags-html (in module commons-jelly) failed

2006-04-03 Thread commons-jelly-tags-html development
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-html has an issue affecting its community 
integration.
This issue affects 1 projects,
 and has been outstanding for 64 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-html :  Commons Jelly


Full details are available at:

http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-tags-html/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Sole output [commons-jelly-tags-html-03042006.jar] identifier set to 
project name
 -DEBUG- Dependency on xml-xerces exists, no need to add for property 
maven.jar.xerces.
 -DEBUG- (Gump generated) Maven Properties in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/html/build.properties
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/html/project.xml
 -DEBUG- Maven project properties in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/html/project.properties
 -INFO- Project Reports in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/html/target/test-reports
 -INFO- Failed to extract fallback artifacts from Gump Repository



The following work was performed:
http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-tags-html/gump_work/build_commons-jelly_commons-jelly-tags-html.html
Work Name: build_commons-jelly_commons-jelly-tags-html (Type: Build)
Work ended in a state of : Failed
Elapsed: 12 secs
Command Line: maven --offline jar 
[Working Directory: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/html]
CLASSPATH: 
/opt/jdk1.5/lib/tools.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/usr/local/gump/public/workspace/jakarta-commons/cli/target/commons-cli-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/target/commons-jelly-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/jsl/target/commons-jelly-tags-jsl-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/junit/target/commons-jelly-tags-junit-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/log/target/commons-jelly-tags-log-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/xml/target/commons-jelly-tags-xml-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-03042006.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/packages/jaxen-1.1-beta-4/jaxen-1.1-beta-4.jar:/usr/local/gump/packages/nekohtml-0.9.5/nekohtml.jar
-
[junit] at 
org.apache.commons.jelly.tags.junit.CaseTag$1.runTest(CaseTag.java:59)
[junit] 
[junit] 
[junit] Testcase: 
testLowerCase(org.apache.commons.jelly.tags.junit.CaseTag$1): Caused an 
ERROR
[junit] 
file:/x1/gump/public/workspace/commons-jelly/jelly-tags/html/target/test-classes/org/apache/commons/jelly/html/suite.jelly:40:48:
 test:assert You must define an attribute called 'test' for this tag.
[junit] org.apache.commons.jelly.MissingAttributeException: 
file:/x1/gump/public/workspace/commons-jelly/jelly-tags/html/target/test-classes/org/apache/commons/jelly/html/suite.jelly:40:48:
 test:assert You must define an attribute called 'test' for this tag.
[junit] at 
org.apache.commons.jelly.tags.junit.AssertTag.doTag(AssertTag.java:54)
[junit] at 
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[junit] at 
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[junit] at 
org.apache.commons.jelly.tags.junit.CaseTag$1.runTest(CaseTag.java:59)
[junit] 
[junit] 
[junit] Testcase: 
testMixedCase(org.apache.commons.jelly.tags.junit.CaseTag$1): Caused an 
ERROR
[junit] 
file:/x1/gump/public/workspace/commons-jelly/jelly-tags/html/target/test-classes/org/apache/commons/jelly/html/suite.jelly:47:48:
 test:assert You must define an attribute called 'test' for this tag.
[junit] org.apache.commons.jelly.MissingAttributeException: 
file:/x1/gump/public/workspace/commons-jelly/jelly-tags/html/target/test-classes/org/apache/commons/jelly/html/suite.jelly:47:48:
 test:assert You must define an attribute called 'test' for this tag.
[junit] at 

[EMAIL PROTECTED]: Project commons-jelly-tags-jsl-test (in module commons-jelly) failed

2006-04-03 Thread commons-jelly-tags-jsl development
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 64 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: 15 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/jakarta-commons/cli/target/commons-cli-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/target/commons-jelly-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/ant/target/commons-jelly-tags-ant-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/junit/target/commons-jelly-tags-junit-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/log/target/commons-jelly-tags-log-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/xml/target/commons-jelly-tags-xml-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-03042006.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/packages/jaxen-1.1-beta-4/jaxen-1.1-beta-4.jar
-
[junit] at 
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[junit] at 
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[junit] at 
org.apache.commons.jelly.TagSupport.getBodyText(TagSupport.java:234)
[junit] at 
org.apache.commons.jelly.tags.core.SetTag.doTag(SetTag.java:90)
[junit] at 
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[junit] at 
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[junit] at 
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[junit] at 
org.apache.commons.jelly.tags.jsl.TemplateTag$1.run(TemplateTag.java:160)
[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] at org.dom4j.rule.Mode.fireRule(Mode.java:59)
[junit] at org.dom4j.rule.Stylesheet.run(Stylesheet.java:102)
[junit] at org.dom4j.rule.Stylesheet.run(Stylesheet.java:91)
[junit] at org.dom4j.rule.Stylesheet.run(Stylesheet.java:78)
[junit] at 

[EMAIL PROTECTED]: Project commons-jelly-tags-jsl-test (in module commons-jelly) failed

2006-04-03 Thread commons-jelly-tags-jsl development
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 64 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: 15 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/jakarta-commons/cli/target/commons-cli-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/target/commons-jelly-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/ant/target/commons-jelly-tags-ant-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/junit/target/commons-jelly-tags-junit-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/log/target/commons-jelly-tags-log-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/xml/target/commons-jelly-tags-xml-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-03042006.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/packages/jaxen-1.1-beta-4/jaxen-1.1-beta-4.jar
-
[junit] at 
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[junit] at 
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[junit] at 
org.apache.commons.jelly.TagSupport.getBodyText(TagSupport.java:234)
[junit] at 
org.apache.commons.jelly.tags.core.SetTag.doTag(SetTag.java:90)
[junit] at 
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[junit] at 
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[junit] at 
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[junit] at 
org.apache.commons.jelly.tags.jsl.TemplateTag$1.run(TemplateTag.java:160)
[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] at org.dom4j.rule.Mode.fireRule(Mode.java:59)
[junit] at org.dom4j.rule.Stylesheet.run(Stylesheet.java:102)
[junit] at org.dom4j.rule.Stylesheet.run(Stylesheet.java:91)
[junit] at org.dom4j.rule.Stylesheet.run(Stylesheet.java:78)
[junit] at 

svn commit: r391004 - in /jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl: Script.java ScriptFactory.java ScriptImpl.java

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 04:22:29 2006
New Revision: 391004

URL: http://svn.apache.org/viewcvs?rev=391004view=rev
Log:
Start of script implementation

Added:

jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/Script.java  
 (with props)

jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java
   (with props)

jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptImpl.java
   (with props)

Added: 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/Script.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/Script.java?rev=391004view=auto
==
--- 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/Script.java 
(added)
+++ 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/Script.java 
Mon Apr  3 04:22:29 2006
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2002-2006 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.jexl;
+
+public interface Script {
+/**
+ * Executes the script with the variables contained in the
+ * supplied [EMAIL PROTECTED] JexlContext}. 
+ * 
+ * @param context A JexlContext containing variables.
+ * @return The result of this script, usually the result of the last 
statement.
+ */
+Object execute(JexlContext context) throws Exception;
+
+/**
+ * Returns the text of this Script.
+ * @return The script to be executed.
+ */
+String getText();
+
+}

Propchange: 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/Script.java
--
svn:keywords = Id

Added: 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java?rev=391004view=auto
==
--- 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java
 (added)
+++ 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java
 Mon Apr  3 04:22:29 2006
@@ -0,0 +1,126 @@
+/*
+ * Copyright 2002-2006 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.jexl;
+
+import java.io.StringReader;
+
+import org.apache.commons.jexl.parser.ASTJexlScript;
+import org.apache.commons.jexl.parser.Parser;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+/**
+ * p 
+ * Creates [EMAIL PROTECTED] Script}s.  To create a JEXL Script, pass
+ * valid JEXL syntax to the static createScript() method:
+ * /p
+ * 
+ * pre
+ * String jexl = y = x * 12 + 44; y = y * 4;;
+ * Script script = ScriptFactory.createScript( jexl );
+ * /pre
+ * 
+ * p
+ * When an [EMAIL PROTECTED] Script} is created, the JEXL syntax is
+ * parsed and verified.
+ * /p
+ * @since 1.1
+ * @version $Id$
+ */
+public class ScriptFactory {
+
+/** The Log to which all ScriptFactory messages will be logged.*/
+protected static Log log =
+LogFactory.getLog(org.apache.commons.jexl.ScriptFactory);
+
+/**
+ * The singleton ScriptFactory also holds a single instance of [EMAIL 
PROTECTED] Parser}.
+ * When parsing expressions, ScriptFactory synchronizes on Parser.
+ */
+protected static Parser parser = new Parser(new StringReader(;)); 
//$NON-NLS-1$
+
+/**
+ * ScriptFactory is a singleton and this is the private
+ * instance fufilling that pattern.
+ */
+protected static ScriptFactory factory = new ScriptFactory();
+
+/**
+ * Private constructor, the single instance is always obtained
+ * with a call 

svn commit: r391007 - in /jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl: Script.java ScriptFactory.java ScriptImpl.java

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 04:24:07 2006
New Revision: 391007

URL: http://svn.apache.org/viewcvs?rev=391007view=rev
Log:
Properties

Modified:

jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/Script.java  
 (contents, props changed)

jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java
   (contents, props changed)

jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptImpl.java
   (contents, props changed)

Modified: 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/Script.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/Script.java?rev=391007r1=391006r2=391007view=diff
==
--- 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/Script.java 
(original)
+++ 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/Script.java 
Mon Apr  3 04:24:07 2006
@@ -1,34 +1,34 @@
-/*
- * Copyright 2002-2006 The Apache Software Foundation.
- * 
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *  http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.commons.jexl;
-
-public interface Script {
-/**
- * Executes the script with the variables contained in the
- * supplied [EMAIL PROTECTED] JexlContext}. 
- * 
- * @param context A JexlContext containing variables.
- * @return The result of this script, usually the result of the last 
statement.
- */
-Object execute(JexlContext context) throws Exception;
-
-/**
- * Returns the text of this Script.
- * @return The script to be executed.
- */
-String getText();
-
-}
+/*
+ * Copyright 2002-2006 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.jexl;
+
+public interface Script {
+/**
+ * Executes the script with the variables contained in the
+ * supplied [EMAIL PROTECTED] JexlContext}. 
+ * 
+ * @param context A JexlContext containing variables.
+ * @return The result of this script, usually the result of the last 
statement.
+ */
+Object execute(JexlContext context) throws Exception;
+
+/**
+ * Returns the text of this Script.
+ * @return The script to be executed.
+ */
+String getText();
+
+}

Propchange: 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/Script.java
--
svn:eol-style = native

Propchange: 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/Script.java
--
--- svn:keywords (original)
+++ svn:keywords Mon Apr  3 04:24:07 2006
@@ -1 +1 @@
-Id
+Date Author Id Revision HeadURL

Modified: 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java?rev=391007r1=391006r2=391007view=diff
==
--- 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java
 (original)
+++ 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java
 Mon Apr  3 04:24:07 2006
@@ -1,126 +1,126 @@
-/*
- * Copyright 2002-2006 The Apache Software Foundation.
- * 
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *  http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the 

svn commit: r391008 - /jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 04:24:57 2006
New Revision: 391008

URL: http://svn.apache.org/viewcvs?rev=391008view=rev
Log:
Add value(context) method to support scripts

Modified:

jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java

Modified: 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java?rev=391008r1=391007r2=391008view=diff
==
--- 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java
 (original)
+++ 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java
 Mon Apr  3 04:24:57 2006
@@ -2,8 +2,11 @@
 
 package org.apache.commons.jexl.parser;
 
+import org.apache.commons.jexl.JexlContext;
+
 /**
  * Top of the syntax tree - parsed Jexl code.
+ * @since 1.1
  */
 public class ASTJexlScript extends SimpleNode {
   public ASTJexlScript(int id) {
@@ -18,5 +21,11 @@
   /** Accept the visitor. **/
   public Object jjtAccept(ParserVisitor visitor, Object data) {
 return visitor.visit(this, data);
+  }
+  
+  public Object value(JexlContext jc) throws Exception
+  {
+  SimpleNode child = (SimpleNode)jjtGetChild(0);
+  return child.value(jc);
   }
 }



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



svn commit: r391009 - /jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 04:27:10 2006
New Revision: 391009

URL: http://svn.apache.org/viewcvs?rev=391009view=rev
Log: (empty)

Added:

jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java

Added: 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java?rev=391009view=auto
==
--- 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java
 (added)
+++ 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java
 Mon Apr  3 04:27:10 2006
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2002-2006 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.jexl;
+
+import junit.framework.TestCase;
+
+public class ScriptFactoryTest extends TestCase {
+
+/**
+ * Creates a new test case.
+ * @param name the test case name.
+ */
+public ScriptFactoryTest(String name) {
+super(name);
+}
+
+/**
+ * Ensure the factory can create a script from a String
+ * @throws Exception on a parse error
+ */
+public void testCreateFromString() throws Exception {
+String code = ;;
+assertNotNull(No script created, ScriptFactory.createScript(code));
+}
+}



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



svn commit: r391010 - /jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 04:27:26 2006
New Revision: 391010

URL: http://svn.apache.org/viewcvs?rev=391010view=rev
Log:
Some simple tests

Added:

jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java

Added: 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java?rev=391010view=auto
==
--- 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java
 (added)
+++ 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java
 Mon Apr  3 04:27:26 2006
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2002-2006 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.jexl;
+
+import junit.framework.TestCase;
+
+public class ScriptTest extends TestCase {
+
+/**
+ * Create a new test case.
+ * @param name case name
+ */
+public ScriptTest(String name) {
+super(name);
+}
+
+public void testSimpleScript() throws Exception {
+Script s = ScriptFactory.createScript(while (x  10) x = x + 1;);
+JexlContext jc = JexlHelper.createContext();
+jc.getVars().put(x, new Integer(1));
+
+Object o = s.execute(jc);
+assertEquals(Result is wrong, new Long(10), o);
+}
+}



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



svn commit: r391013 - in /jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl: ScriptFactoryTest.java ScriptTest.java

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 04:30:29 2006
New Revision: 391013

URL: http://svn.apache.org/viewcvs?rev=391013view=rev
Log:
Since tags

Modified:

jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java

jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java

Modified: 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java?rev=391013r1=391012r2=391013view=diff
==
--- 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java
 (original)
+++ 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java
 Mon Apr  3 04:30:29 2006
@@ -17,6 +17,10 @@
 
 import junit.framework.TestCase;
 
+/**
+ * Tests for ScriptFactory
+ * @since 1.1
+ */
 public class ScriptFactoryTest extends TestCase {
 
 /**

Modified: 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java?rev=391013r1=391012r2=391013view=diff
==
--- 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java
 (original)
+++ 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java
 Mon Apr  3 04:30:29 2006
@@ -17,6 +17,10 @@
 
 import junit.framework.TestCase;
 
+/**
+ * Tests for Script
+ * @since 1.1
+ */
 public class ScriptTest extends TestCase {
 
 /**



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



[EMAIL PROTECTED]: Project commons-jelly-tags-define-test (in module commons-jelly) failed

2006-04-03 Thread commons-jelly-tags-define development
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-define-test has an issue affecting its community 
integration.
This issue affects 1 projects,
 and has been outstanding for 64 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-define-test :  Commons Jelly


Full details are available at:

http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-tags-define-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/define/build.properties]
 -DEBUG- (Gump generated) Maven Properties in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/define/build.properties
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/define/project.xml
 -DEBUG- Maven project properties in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/define/project.properties
 -INFO- Project Reports in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/define/target/test-reports



The following work was performed:
http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-tags-define-test/gump_work/build_commons-jelly_commons-jelly-tags-define-test.html
Work Name: build_commons-jelly_commons-jelly-tags-define-test (Type: Build)
Work ended in a state of : Failed
Elapsed: 14 secs
Command Line: maven --offline jar 
[Working Directory: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/define]
CLASSPATH: 
/opt/jdk1.5/lib/tools.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/usr/local/gump/public/workspace/jakarta-commons/cli/target/commons-cli-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/target/commons-jelly-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/dynabean/target/commons-jelly-tags-dynabean-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/junit/target/commons-jelly-tags-junit-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/log/target/commons-jelly-tags-log-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/xml/target/commons-jelly-tags-xml-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-03042006.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/packages/jaxen-1.1-beta-4/jaxen-1.1-beta-4.jar
-
[junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at junit.framework.TestResult.run(TestResult.java:109)
[junit] at junit.framework.TestCase.run(TestCase.java:118)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:208)
[junit] at junit.framework.TestSuite.run(TestSuite.java:203)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)
[junit] Apr 3, 2006 4:24:41 AM 
org.apache.commons.jelly.expression.xpath.XPathExpression evaluate
[junit] SEVERE: Error constructing xpath
[junit] org.jaxen.XPathSyntaxException: Node-set expected
[junit] at org.jaxen.BaseXPath.init(BaseXPath.java:131)
[junit] at org.jaxen.BaseXPath.init(BaseXPath.java:156)
[junit] at org.jaxen.dom4j.Dom4jXPath.init(Dom4jXPath.java:101)
[junit] at 
org.apache.commons.jelly.expression.xpath.XPathExpression.evaluate(XPathExpression.java:78)
[junit] at 
org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(ExpressionSupport.java:61)
[junit] at 
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:256)
[junit] at 
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[junit] at 
org.apache.commons.jelly.tags.junit.CaseTag$1.runTest(CaseTag.java:59)
[junit] at junit.framework.TestCase.runBare(TestCase.java:127)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at 

[EMAIL PROTECTED]: Project commons-jelly-tags-define-test (in module commons-jelly) failed

2006-04-03 Thread commons-jelly-tags-define development
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-define-test has an issue affecting its community 
integration.
This issue affects 1 projects,
 and has been outstanding for 64 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-define-test :  Commons Jelly


Full details are available at:

http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-tags-define-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/define/build.properties]
 -DEBUG- (Gump generated) Maven Properties in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/define/build.properties
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/define/project.xml
 -DEBUG- Maven project properties in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/define/project.properties
 -INFO- Project Reports in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/define/target/test-reports



The following work was performed:
http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-tags-define-test/gump_work/build_commons-jelly_commons-jelly-tags-define-test.html
Work Name: build_commons-jelly_commons-jelly-tags-define-test (Type: Build)
Work ended in a state of : Failed
Elapsed: 14 secs
Command Line: maven --offline jar 
[Working Directory: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/define]
CLASSPATH: 
/opt/jdk1.5/lib/tools.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/usr/local/gump/public/workspace/jakarta-commons/cli/target/commons-cli-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/target/commons-jelly-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/dynabean/target/commons-jelly-tags-dynabean-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/junit/target/commons-jelly-tags-junit-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/log/target/commons-jelly-tags-log-03042006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/xml/target/commons-jelly-tags-xml-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-03042006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-03042006.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/packages/jaxen-1.1-beta-4/jaxen-1.1-beta-4.jar
-
[junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at junit.framework.TestResult.run(TestResult.java:109)
[junit] at junit.framework.TestCase.run(TestCase.java:118)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:208)
[junit] at junit.framework.TestSuite.run(TestSuite.java:203)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)
[junit] Apr 3, 2006 4:24:41 AM 
org.apache.commons.jelly.expression.xpath.XPathExpression evaluate
[junit] SEVERE: Error constructing xpath
[junit] org.jaxen.XPathSyntaxException: Node-set expected
[junit] at org.jaxen.BaseXPath.init(BaseXPath.java:131)
[junit] at org.jaxen.BaseXPath.init(BaseXPath.java:156)
[junit] at org.jaxen.dom4j.Dom4jXPath.init(Dom4jXPath.java:101)
[junit] at 
org.apache.commons.jelly.expression.xpath.XPathExpression.evaluate(XPathExpression.java:78)
[junit] at 
org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(ExpressionSupport.java:61)
[junit] at 
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:256)
[junit] at 
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[junit] at 
org.apache.commons.jelly.tags.junit.CaseTag$1.runTest(CaseTag.java:59)
[junit] at junit.framework.TestCase.runBare(TestCase.java:127)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at 

svn commit: r391015 - /jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/Script.java

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 04:41:48 2006
New Revision: 391015

URL: http://svn.apache.org/viewcvs?rev=391015view=rev
Log:
Little bit of javadoc

Modified:

jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/Script.java

Modified: 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/Script.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/Script.java?rev=391015r1=391014r2=391015view=diff
==
--- 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/Script.java 
(original)
+++ 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/Script.java 
Mon Apr  3 04:41:48 2006
@@ -15,6 +15,17 @@
  */
 package org.apache.commons.jexl;
 
+/**
+ * pA JEXL Script./p
+ * pA script is some valid JEXL syntax to be executed with
+ * a given set of [EMAIL PROTECTED] JexlContext variables}./p
+ * pA script is a group of statements, separated by semicolons./p
+ * pThe statements can be codeblocks/code (curly braces containing code),
+ * Control statements such as codeif/code and codewhile/code
+ * as well as expressions and assignment statements./p
+ *  
+ * @since 1.1
+ */
 public interface Script {
 /**
  * Executes the script with the variables contained in the



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



svn commit: r391016 - /jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 04:42:09 2006
New Revision: 391016

URL: http://svn.apache.org/viewcvs?rev=391016view=rev
Log:
Check getText on script

Modified:

jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java

Modified: 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java?rev=391016r1=391015r2=391016view=diff
==
--- 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java
 (original)
+++ 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java
 Mon Apr  3 04:42:09 2006
@@ -32,11 +32,13 @@
 }
 
 public void testSimpleScript() throws Exception {
-Script s = ScriptFactory.createScript(while (x  10) x = x + 1;);
+String code = while (x  10) x = x + 1;;
+Script s = ScriptFactory.createScript(code);
 JexlContext jc = JexlHelper.createContext();
 jc.getVars().put(x, new Integer(1));
 
 Object o = s.execute(jc);
 assertEquals(Result is wrong, new Long(10), o);
+assertEquals(getText is wrong, code, s.getText());
 }
 }



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



svn commit: r391019 - /jakarta/commons/proper/jexl/trunk/src/conf/MANIFEST.MF

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 04:50:23 2006
New Revision: 391019

URL: http://svn.apache.org/viewcvs?rev=391019view=rev
Log:
update manifest to new details

Modified:
jakarta/commons/proper/jexl/trunk/src/conf/MANIFEST.MF

Modified: jakarta/commons/proper/jexl/trunk/src/conf/MANIFEST.MF
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/conf/MANIFEST.MF?rev=391019r1=391018r2=391019view=diff
==
--- jakarta/commons/proper/jexl/trunk/src/conf/MANIFEST.MF (original)
+++ jakarta/commons/proper/jexl/trunk/src/conf/MANIFEST.MF Mon Apr  3 04:50:23 
2006
@@ -1,6 +1,6 @@
 Extension-Name: org.apache.commons.jexl
 Specification-Vendor: Apache Software Foundation
-Specification-Version: 1.0
+Specification-Version: 1.1
 Implementation-Vendor: Apache Software Foundation
-Implementation-Version: 1.0-dev
+Implementation-Version: 1.1-SNAPSHOT
 



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



svn commit: r391021 - /jakarta/commons/proper/jexl/trunk/src/conf/MANIFEST.MF

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 04:50:47 2006
New Revision: 391021

URL: http://svn.apache.org/viewcvs?rev=391021view=rev
Log:
Actually we are still using 1.0 grammar.

Modified:
jakarta/commons/proper/jexl/trunk/src/conf/MANIFEST.MF

Modified: jakarta/commons/proper/jexl/trunk/src/conf/MANIFEST.MF
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/conf/MANIFEST.MF?rev=391021r1=391020r2=391021view=diff
==
--- jakarta/commons/proper/jexl/trunk/src/conf/MANIFEST.MF (original)
+++ jakarta/commons/proper/jexl/trunk/src/conf/MANIFEST.MF Mon Apr  3 04:50:47 
2006
@@ -1,6 +1,6 @@
 Extension-Name: org.apache.commons.jexl
 Specification-Vendor: Apache Software Foundation
-Specification-Version: 1.1
+Specification-Version: 1.0
 Implementation-Vendor: Apache Software Foundation
 Implementation-Version: 1.1-SNAPSHOT
 



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



svn commit: r391026 - /jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptImpl.java

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 05:11:35 2006
New Revision: 391026

URL: http://svn.apache.org/viewcvs?rev=391026view=rev
Log:
Add javadoc

Modified:

jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptImpl.java

Modified: 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptImpl.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptImpl.java?rev=391026r1=391025r2=391026view=diff
==
--- 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptImpl.java
 (original)
+++ 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptImpl.java
 Mon Apr  3 05:11:35 2006
@@ -18,6 +18,10 @@
 
 import org.apache.commons.jexl.parser.ASTJexlScript;
 
+/**
+ * Simple script implementation.
+ * @since 1.1
+ */
 public class ScriptImpl implements Script {
 
 /** text of the script */



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



svn commit: r391028 - /jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 05:23:43 2006
New Revision: 391028

URL: http://svn.apache.org/viewcvs?rev=391028view=rev
Log:
Make sure the script executes all statements

Modified:

jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java

Modified: 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java?rev=391028r1=391027r2=391028view=diff
==
--- 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java
 (original)
+++ 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java
 Mon Apr  3 05:23:43 2006
@@ -25,7 +25,12 @@
   
   public Object value(JexlContext jc) throws Exception
   {
-  SimpleNode child = (SimpleNode)jjtGetChild(0);
-  return child.value(jc);
+  int numChildren = jjtGetNumChildren();
+  Object result = null;
+  for (int i = 0; i  numChildren; i++) {
+  SimpleNode child = (SimpleNode)jjtGetChild(i);
+  result = child.value(jc);
+  }
+  return result;
   }
 }



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



svn commit: r391029 - /jakarta/commons/proper/jexl/trunk/src/test-scripts/

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 05:25:55 2006
New Revision: 391029

URL: http://svn.apache.org/viewcvs?rev=391029view=rev
Log:
Add a simple test file

Added:
jakarta/commons/proper/jexl/trunk/src/test-scripts/


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



svn commit: r391030 - /jakarta/commons/proper/jexl/trunk/src/test-scripts/test1.jexl

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 05:26:05 2006
New Revision: 391030

URL: http://svn.apache.org/viewcvs?rev=391030view=rev
Log:
Add a simple test file

Added:
jakarta/commons/proper/jexl/trunk/src/test-scripts/test1.jexl

Added: jakarta/commons/proper/jexl/trunk/src/test-scripts/test1.jexl
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/test-scripts/test1.jexl?rev=391030view=auto
==
--- jakarta/commons/proper/jexl/trunk/src/test-scripts/test1.jexl (added)
+++ jakarta/commons/proper/jexl/trunk/src/test-scripts/test1.jexl Mon Apr  3 
05:26:05 2006
@@ -0,0 +1,10 @@
+##
+## This is a test script
+##
+if (out != null) out.println('Starting test script');
+x = 1;
+y = 2;
+result = x * y + 5;
+if (out != null) out.println(The result is  + result);
+## return the result.
+result;
\ No newline at end of file



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



svn commit: r391032 - /jakarta/commons/proper/jexl/trunk/src/test-scripts/test1.jexl

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 05:28:04 2006
New Revision: 391032

URL: http://svn.apache.org/viewcvs?rev=391032view=rev
Log:
props

Modified:
jakarta/commons/proper/jexl/trunk/src/test-scripts/test1.jexl   (contents, 
props changed)

Modified: jakarta/commons/proper/jexl/trunk/src/test-scripts/test1.jexl
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/test-scripts/test1.jexl?rev=391032r1=391031r2=391032view=diff
==
--- jakarta/commons/proper/jexl/trunk/src/test-scripts/test1.jexl (original)
+++ jakarta/commons/proper/jexl/trunk/src/test-scripts/test1.jexl Mon Apr  3 
05:28:04 2006
@@ -1,10 +1,10 @@
-##
-## This is a test script
-##
-if (out != null) out.println('Starting test script');
-x = 1;
-y = 2;
-result = x * y + 5;
-if (out != null) out.println(The result is  + result);
-## return the result.
+##
+## This is a test script
+##
+if (out != null) out.println('Starting test script');
+x = 1;
+y = 2;
+result = x * y + 5;
+if (out != null) out.println(The result is  + result);
+## return the result.
 result;

Propchange: jakarta/commons/proper/jexl/trunk/src/test-scripts/test1.jexl
--
svn:eol-style = native

Propchange: jakarta/commons/proper/jexl/trunk/src/test-scripts/test1.jexl
--
svn:keywords = Date Author Id Revision HeadURL



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



svn commit: r391033 - in /jakarta/commons/proper/jexl/trunk/src: java/org/apache/commons/jexl/ScriptFactory.java test/org/apache/commons/jexl/ScriptFactoryTest.java test/org/apache/commons/jexl/Script

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 05:29:23 2006
New Revision: 391033

URL: http://svn.apache.org/viewcvs?rev=391033view=rev
Log:
Support scripts from a file

Modified:

jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java

jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java

jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java

Modified: 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java?rev=391033r1=391032r2=391033view=diff
==
--- 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java
 (original)
+++ 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java
 Mon Apr  3 05:29:23 2006
@@ -15,6 +15,10 @@
  */
 package org.apache.commons.jexl;
 
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileReader;
+import java.io.IOException;
 import java.io.StringReader;
 
 import org.apache.commons.jexl.parser.ASTJexlScript;
@@ -86,6 +90,31 @@
 return getInstance().newScript(scriptText);
 }
 
+/**
+ * Creates a Script from a String containing valid JEXL syntax. 
+ * This method parses the script which validates the syntax.
+ * 
+ * @param scriptText A String containing valid JEXL syntax
+ * @return A [EMAIL PROTECTED] Script} which can be executed with a [EMAIL 
PROTECTED] JexlContext}.
+ * @throws Exception An exception can be thrown if there is a problem 
parsing the script.
+ */
+public static Script createScript(File scriptFile) throws Exception
+{
+if (scriptFile == null) {
+throw new NullPointerException(scriptFile passed to 
ScriptFactory.createScript is null);
+}
+if (!scriptFile.canRead()) {
+throw new IOException(Can't read scriptFile ( + 
scriptFile.getCanonicalPath() +));
+}
+StringBuffer buffer = new StringBuffer();
+BufferedReader reader = new BufferedReader(new FileReader(scriptFile));
+String line = null;
+while ((line = reader.readLine()) != null) {
+buffer.append(line).append('\n');
+}
+reader.close();
+return getInstance().newScript(buffer.toString());
+}
 
 /**
  *  Creates a new Script based on the string.

Modified: 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java?rev=391033r1=391032r2=391033view=diff
==
--- 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java
 (original)
+++ 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java
 Mon Apr  3 05:29:23 2006
@@ -15,6 +15,8 @@
  */
 package org.apache.commons.jexl;
 
+import java.io.File;
+
 import junit.framework.TestCase;
 
 /**
@@ -38,5 +40,14 @@
 public void testCreateFromString() throws Exception {
 String code = ;;
 assertNotNull(No script created, ScriptFactory.createScript(code));
+}
+
+/**
+ * Ensure the factory can create a script from a file.
+ * @throws Exception on a parse error.
+ */
+public void testCreateFromFile() throws Exception {
+File testScript = new File(src/test-scripts/test1.jexl);
+assertNotNull(No script created, 
ScriptFactory.createScript(testScript));
 }
 }

Modified: 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java?rev=391033r1=391032r2=391033view=diff
==
--- 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java
 (original)
+++ 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java
 Mon Apr  3 05:29:23 2006
@@ -15,6 +15,8 @@
  */
 package org.apache.commons.jexl;
 
+import java.io.File;
+
 import junit.framework.TestCase;
 
 /**
@@ -31,6 +33,9 @@
 super(name);
 }
 
+/**
+ * Test creating a script from a string.
+ */
 public void testSimpleScript() throws Exception {
 String code = while (x  10) x = x + 1;;
 Script s = ScriptFactory.createScript(code);
@@ -40,5 +45,15 @@
 Object o = s.execute(jc);
 assertEquals(Result is wrong, new Long(10), o);
 assertEquals(getText is wrong, code, s.getText());
+}
+
+public void testScriptFromFile() throws Exception {
+File testScript = 

svn commit: r391039 - /jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 06:03:06 2006
New Revision: 391039

URL: http://svn.apache.org/viewcvs?rev=391039view=rev
Log:
javadocs

Modified:

jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java

Modified: 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java?rev=391039r1=391038r2=391039view=diff
==
--- 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java
 (original)
+++ 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java
 Mon Apr  3 06:03:06 2006
@@ -91,10 +91,10 @@
 }
 
 /**
- * Creates a Script from a String containing valid JEXL syntax. 
- * This method parses the script which validates the syntax.
+ * Creates a Script from a [EMAIL PROTECTED] File} containing valid JEXL 
syntax. 
+ * This method parses the script and validates the syntax.
  * 
- * @param scriptText A String containing valid JEXL syntax
+ * @param scriptFile A [EMAIL PROTECTED] File} containing valid JEXL 
syntax. Must not be null. Must be a readable file.
  * @return A [EMAIL PROTECTED] Script} which can be executed with a [EMAIL 
PROTECTED] JexlContext}.
  * @throws Exception An exception can be thrown if there is a problem 
parsing the script.
  */



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



svn commit: r391040 - in /jakarta/commons/proper/jexl/trunk/src: java/org/apache/commons/jexl/ScriptFactory.java test/org/apache/commons/jexl/ScriptFactoryTest.java test/org/apache/commons/jexl/Script

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 06:10:59 2006
New Revision: 391040

URL: http://svn.apache.org/viewcvs?rev=391040view=rev
Log:
Support scripts from URLs

Modified:

jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java

jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java

jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java

Modified: 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java?rev=391040r1=391039r2=391040view=diff
==
--- 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java
 (original)
+++ 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ScriptFactory.java
 Mon Apr  3 06:10:59 2006
@@ -19,7 +19,10 @@
 import java.io.File;
 import java.io.FileReader;
 import java.io.IOException;
+import java.io.InputStreamReader;
 import java.io.StringReader;
+import java.net.URL;
+import java.net.URLConnection;
 
 import org.apache.commons.jexl.parser.ASTJexlScript;
 import org.apache.commons.jexl.parser.Parser;
@@ -113,7 +116,32 @@
 buffer.append(line).append('\n');
 }
 reader.close();
-return getInstance().newScript(buffer.toString());
+return createScript(buffer.toString());
+}
+
+/**
+ * Creates a Script from a [EMAIL PROTECTED] URL} containing valid JEXL 
syntax. 
+ * This method parses the script and validates the syntax.
+ * 
+ * @param scriptUrl A [EMAIL PROTECTED] URL} containing valid JEXL syntax. 
Must not be null. Must be a readable file.
+ * @return A [EMAIL PROTECTED] Script} which can be executed with a [EMAIL 
PROTECTED] JexlContext}.
+ * @throws Exception An exception can be thrown if there is a problem 
parsing the script.
+ */
+public static Script createScript(URL scriptUrl) throws Exception
+{
+if (scriptUrl == null) {
+throw new NullPointerException(scriptUrl passed to 
ScriptFactory.createScript is null);
+}
+URLConnection connection = scriptUrl.openConnection();
+
+StringBuffer buffer = new StringBuffer();
+BufferedReader reader = new BufferedReader(new 
InputStreamReader(connection.getInputStream()));
+String line = null;
+while ((line = reader.readLine()) != null) {
+buffer.append(line).append('\n');
+}
+reader.close();
+return createScript(buffer.toString());
 }
 
 /**

Modified: 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java?rev=391040r1=391039r2=391040view=diff
==
--- 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java
 (original)
+++ 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java
 Mon Apr  3 06:10:59 2006
@@ -16,6 +16,7 @@
 package org.apache.commons.jexl;
 
 import java.io.File;
+import java.net.URL;
 
 import junit.framework.TestCase;
 
@@ -49,5 +50,14 @@
 public void testCreateFromFile() throws Exception {
 File testScript = new File(src/test-scripts/test1.jexl);
 assertNotNull(No script created, 
ScriptFactory.createScript(testScript));
+}
+
+/**
+ * Ensure the factory can create a script from a URL.
+ * @throws Exception on a parse error.
+ */
+public void testCreateFromURL() throws Exception {
+URL testUrl = new File(src/test-scripts/test1.jexl).toURL();
+assertNotNull(No script created, 
ScriptFactory.createScript(testUrl));
 }
 }

Modified: 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java?rev=391040r1=391039r2=391040view=diff
==
--- 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java
 (original)
+++ 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java
 Mon Apr  3 06:10:59 2006
@@ -16,6 +16,7 @@
 package org.apache.commons.jexl;
 
 import java.io.File;
+import java.net.URL;
 
 import junit.framework.TestCase;
 
@@ -50,6 +51,16 @@
 public void testScriptFromFile() throws Exception {
 File testScript = new File(src/test-scripts/test1.jexl);
 Script s = ScriptFactory.createScript(testScript);
+JexlContext jc = JexlHelper.createContext();
+jc.getVars().put(out, System.out);
+   

Re: [attributes] building with maven

2006-04-03 Thread Matt Benson
This did indeed seem to solve my problem with the
install goal.  The instruction say to run
install-plugin and test as well; these attempt to DL
[ca] but fail.  I will continue to investigate
whether/how I can (simply) test my local [ca] build.

Thanks Phil,
Matt

--- Phil Steitz [EMAIL PROTECTED] wrote:

 For some reason the javadoc-1.4 dependency in the
 /compiler POM is
 commented out.  When I remove the comments around
 
 dependency
   groupIdjavadoc/groupId
artifactIdjavadoc/artifactId
version1.4/version
 /dependency
 
 in /compiler/project.xml the build succeeds for me. 
 Don't know if
 this is the right solution, but it eliminates the
 compile failures
 that I was seeing due to missing javadoc classes.
 
 Phil
 
 On 4/2/06, Leo Sutic [EMAIL PROTECTED] wrote:
  Hi Matt,
 
  I'm currently away from any kind of build
 environment, so I can't
  replicate your problems (it built fine for me last
 time I tried,
  though). Could you post the full Maven output, and
 could you run maven
  with the -v (verbose) switch? I'll attack the
 problem from this end,
  as much and fast as I can.
 
  Sorry that C.A is causing you problems. I
 definitely intended for it
  to be a dirt-simple check-out-and-build-and-use.
 
  /LS
 
  On 3/31/06, Matt Benson [EMAIL PROTECTED]
 wrote:
   I am attempting to build C.A.  What I have
 figured out
   by trial and error so far:
  
   - install maven 1.0.2
   - co commons-attributes and commons-build
 side-by-side
   - in /commons-attributes, run 'maven install'.
  
   It goes through retrieving dependencies and
 placing
   these all in a maven repo.  This includes the
 javadoc
   jar
  

($HOME/.maven/repository/javadoc/jars/javadoc-1.4.jar).
The C.A. api builds fine, but when the compiler
 tries
   to build, the classes and even the packages in
 the
   javadoc jar are not found and the build fails.
  
   Does anyone have any advice to get further?
  
   Thanks,
   Matt
  
  
 __
   Do You Yahoo!?
   Tired of spam?  Yahoo! Mail has the best spam
 protection around
   http://mail.yahoo.com
  
  

-
   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]
 
 
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



DO NOT REPLY [Bug 38518] - [daemon] java fails to bind on port 80

2006-04-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38518.
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=38518





--- Additional Comments From [EMAIL PROTECTED]  2006-04-03 20:48 ---
apache tomcat 5.5.15

$ java -version
java version 1.6.0-beta
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-beta-b59g)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-beta-b59g, mixed mode)

I might have tried 1.5.0_06 as well, I can no longer remember.

-- 
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: r391133 - in /jakarta/commons/sandbox/scxml/trunk/src: main/java/org/apache/commons/scxml/ test/java/org/apache/commons/scxml/ test/java/org/apache/commons/scxml/env/jexl/

2006-04-03 Thread rahul
Author: rahul
Date: Mon Apr  3 13:13:56 2006
New Revision: 391133

URL: http://svn.apache.org/viewcvs?rev=391133view=rev
Log:
Applying additions between Sep '05 and Jan '06 SCXML WDs related to events 
[part 1].

Event payload must be available to the transition condition expression and the 
executable content on transition under the special variable _eventdata.

Added a couple of test cases with sample SCXML documents illustrating the usage.

Added:

jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/EventDataTest.java
   (with props)

jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/env/jexl/eventdata-01.xml
   (with props)

jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/env/jexl/eventdata-02.xml
   (with props)
Modified:

jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/SCXMLExecutor.java

jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java

jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestSuite.java

Modified: 
jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/SCXMLExecutor.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/SCXMLExecutor.java?rev=391133r1=391132r2=391133view=diff
==
--- 
jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/SCXMLExecutor.java
 (original)
+++ 
jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/SCXMLExecutor.java
 Mon Apr  3 13:13:56 2006
@@ -19,7 +19,9 @@
 
 import java.util.ArrayList;
 import java.util.Arrays;
+import java.util.HashMap;
 import java.util.Iterator;
+import java.util.Map;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
@@ -96,6 +98,8 @@
  */
 public void triggerEvents(final TriggerEvent[] evts)
 throws ModelException {
+// Set event data, saving old values
+Object[] oldData = setEventData(evts);
 ArrayList evs = new ArrayList(Arrays.asList(evts));
 do {
 // CreateStep
@@ -119,10 +123,26 @@
 evs.clear();
 }
 } while(superStep  currentStatus.getEvents().size()  0);
+// Restore event data
+restoreEventData(oldData);
 logState();
 }
 
 /**
+ * Convenience method when only one event needs to be triggered.
+ *
+ * @param evt
+ *the external events which triggered during the last
+ *time quantum
+ * @throws ModelException in case there is a fatal SCXML object
+ *model problem.
+ */
+public void triggerEvent(final TriggerEvent evt)
+throws ModelException {
+triggerEvents(new TriggerEvent[] {evt});
+}
+
+/**
  * Constructor.
  *
  * @param expEvaluator The expression evaluator
@@ -455,6 +475,49 @@
 scInstance.getRootContext().setLocal(_ALL_STATES,
 SCXMLHelper.getAncestorClosure(currentStatus.getStates(), null));
 }
+
+/**
+ * @param evts The events being triggered.
+ * @return Object[] Previous values.
+ */
+private Object[] setEventData(final TriggerEvent[] evts) {
+Context rootCtx = scInstance.getRootContext();
+Object[] oldData = {rootCtx.get(EVENT_DATA),
+rootCtx.get(EVENT_DATA_MAP)};
+Object eventData = null;
+Map payloadMap = new HashMap();
+int len = evts.length;
+for (int i = 0; i  len; i++) {
+TriggerEvent te = evts[i];
+payloadMap.put(te.getName(), te.getPayload());
+}
+if (len == 1) {
+// we have only one event
+eventData = evts[0].getPayload();
+}
+rootCtx.setLocal(EVENT_DATA, eventData);
+rootCtx.setLocal(EVENT_DATA_MAP, payloadMap);
+return oldData;
+}
+
+/**
+ * @param oldData The old values to restore to.
+ */
+private void restoreEventData(final Object[] oldData) {
+scInstance.getRootContext().setLocal(EVENT_DATA, oldData[0]);
+scInstance.getRootContext().setLocal(EVENT_DATA_MAP, oldData[1]);
+}
+
+/**
+ * The special variable for storing single event data / payload.
+ */
+private static final String EVENT_DATA = _eventdata;
+
+/**
+ * The special variable for storing event data / payload,
+ * when multiple events are triggered, keyed by event name.
+ */
+private static final String EVENT_DATA_MAP = _eventdatamap;
 
 /**
  * SCXMLExecutor put into motion without setting a model (state machine).

Added: 
jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/EventDataTest.java
URL: 

svn commit: r391142 - in /jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml: EventDataTest.java SCXMLExecutorTest.java SCXMLTestHelper.java WizardsTest.java

2006-04-03 Thread rahul
Author: rahul
Date: Mon Apr  3 13:31:29 2006
New Revision: 391142

URL: http://svn.apache.org/viewcvs?rev=391142view=rev
Log:
Minor renaming / refactoring in test classes.

Modified:

jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/EventDataTest.java

jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLExecutorTest.java

jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java

jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/WizardsTest.java

Modified: 
jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/EventDataTest.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/EventDataTest.java?rev=391142r1=391141r2=391142view=diff
==
--- 
jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/EventDataTest.java
 (original)
+++ 
jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/EventDataTest.java
 Mon Apr  3 13:31:29 2006
@@ -84,7 +84,7 @@
 TriggerEvent[] evts = new TriggerEvent[] { te,
 new TriggerEvent(event.bar, TriggerEvent.SIGNAL_EVENT,
 new Integer(6))};
-currentStates = SCXMLTestHelper.fireEvent(exec, evts);
+currentStates = SCXMLTestHelper.fireEvents(exec, evts);
 assertEquals(1, currentStates.size());
 assertEquals(state6, ((State)currentStates.iterator().
 next()).getId());

Modified: 
jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLExecutorTest.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLExecutorTest.java?rev=391142r1=391141r2=391142view=diff
==
--- 
jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLExecutorTest.java
 (original)
+++ 
jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLExecutorTest.java
 Mon Apr  3 13:31:29 2006
@@ -108,15 +108,15 @@
 exec = SCXMLTestHelper.getExecutor(transitions01);
 assertNotNull(exec);
 try {
-Set currentStates = fireEvent(ten.done);
+Set currentStates = SCXMLTestHelper.fireEvent(exec, ten.done);
 assertEquals(1, currentStates.size());
 assertEquals(twenty_one, ((State)currentStates.iterator().
 next()).getId());
-currentStates = fireEvent(twenty_one.done);
+currentStates = SCXMLTestHelper.fireEvent(exec, twenty_one.done);
 assertEquals(1, currentStates.size());
 assertEquals(twenty_two, ((State)currentStates.iterator().
 next()).getId());
-currentStates = fireEvent(twenty_two.done);
+currentStates = SCXMLTestHelper.fireEvent(exec, twenty_two.done);
 assertEquals(3, exec.getCurrentStatus().getStates().size());
 } catch (Exception e) {
 fail(e.getMessage());
@@ -136,20 +136,9 @@
 }
 }
 
-private Set fireEvent(String name) {
-TriggerEvent[] evts = {new TriggerEvent(name,
-TriggerEvent.SIGNAL_EVENT, null)};
-try {
-exec.triggerEvents(evts);
-} catch (Exception e) {
-fail(e.getMessage());
-}
-return exec.getCurrentStatus().getStates();
-}
-
 private void checkMicrowave01Sample() {
 try {
-Set currentStates = fireEvent(turn_on);
+Set currentStates = SCXMLTestHelper.fireEvent(exec, turn_on);
 assertEquals(1, currentStates.size());
 assertEquals(cooking, ((State)currentStates.iterator().
 next()).getId());
@@ -160,7 +149,7 @@
 
 private void checkMicrowave02Sample() {
 try {
-Set currentStates = fireEvent(turn_on);
+Set currentStates = SCXMLTestHelper.fireEvent(exec, turn_on);
 assertEquals(2, currentStates.size());
 String id = ((State)currentStates.iterator().next()).getId();
 assertTrue(id.equals(closed) || id.equals(cooking));

Modified: 
jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java?rev=391142r1=391141r2=391142view=diff
==
--- 
jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java
 (original)
+++ 
jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java
 Mon Apr  3 13:31:29 2006
@@ -177,7 +177,7 @@
   

svn commit: r391145 - in /jakarta/commons/sandbox/scxml/trunk/src: main/java/org/apache/commons/scxml/semantics/ test/java/org/apache/commons/scxml/ test/java/org/apache/commons/scxml/env/jexl/

2006-04-03 Thread rahul
Author: rahul
Date: Mon Apr  3 13:35:43 2006
New Revision: 391145

URL: http://svn.apache.org/viewcvs?rev=391145view=rev
Log:
Applying additions between Sep '05 and Jan '06 SCXML WDs related to events 
[part 2].

The wildcard event name * (a single asterisk) matches all event names.

Added a test case illustrating the usage.

Added:

jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/WildcardTest.java
   (with props)

jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/env/jexl/wildcard-01.xml
   (with props)
Modified:

jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/semantics/SCXMLSemanticsImpl.java

jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestSuite.java

Modified: 
jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/semantics/SCXMLSemanticsImpl.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/semantics/SCXMLSemanticsImpl.java?rev=391145r1=391144r2=391145view=diff
==
--- 
jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/semantics/SCXMLSemanticsImpl.java
 (original)
+++ 
jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/semantics/SCXMLSemanticsImpl.java
 Mon Apr  3 13:35:43 2006
@@ -597,13 +597,14 @@
 if (SCXMLHelper.isStringEmpty(transEvent)) {
 return true;
 } else {
-String transEventDot = transEvent + .; //wildcard (prefix) event
-// support
+String transEventDot = transEvent + .; // prefix event support
 Iterator i = eventOccurrences.iterator();
 while (i.hasNext()) {
 String evt = (String) i.next();
 if (evt == null) {
 continue; // Unnamed events
+} else if (evt.equals(*)) {
+return true; // Wildcard
 } else if (evt.equals(transEvent)
 || evt.startsWith(transEventDot)) {
 return true;

Modified: 
jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestSuite.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestSuite.java?rev=391145r1=391144r2=391145view=diff
==
--- 
jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestSuite.java
 (original)
+++ 
jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestSuite.java
 Mon Apr  3 13:35:43 2006
@@ -53,6 +53,7 @@
 suite.addTest(SCXMLHelperTest.suite());
 suite.addTest(StatusTest.suite());
 suite.addTest(TriggerEventTest.suite());
+suite.addTest(WildcardTest.suite());
 suite.addTest(WizardsTest.suite());
 return suite;
 }

Added: 
jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/WildcardTest.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/WildcardTest.java?rev=391145view=auto
==
--- 
jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/WildcardTest.java
 (added)
+++ 
jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/WildcardTest.java
 Mon Apr  3 13:35:43 2006
@@ -0,0 +1,88 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.scxml;
+
+import java.net.URL;
+import java.util.Set;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+import org.apache.commons.scxml.model.State;
+/**
+ * Unit tests [EMAIL PROTECTED] org.apache.commons.scxml.SCXMLExecutor}.
+ * Testing wildcard event matching (*)
+ */
+public class WildcardTest extends TestCase {
+/**
+ * Construct a new instance of SCXMLExecutorTest with
+ * the specified name
+ */
+public WildcardTest(String name) {
+super(name);
+}
+
+public static Test suite() {
+TestSuite suite = new TestSuite(WildcardTest.class);
+   

svn commit: r391180 - /jakarta/commons/proper/jexl/trunk/xdocs/changes.xml

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 16:47:47 2006
New Revision: 391180

URL: http://svn.apache.org/viewcvs?rev=391180view=rev
Log:
Doc script changes

Modified:
jakarta/commons/proper/jexl/trunk/xdocs/changes.xml

Modified: jakarta/commons/proper/jexl/trunk/xdocs/changes.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/xdocs/changes.xml?rev=391180r1=391179r2=391180view=diff
==
--- jakarta/commons/proper/jexl/trunk/xdocs/changes.xml (original)
+++ jakarta/commons/proper/jexl/trunk/xdocs/changes.xml Mon Apr  3 16:47:47 2006
@@ -25,6 +25,7 @@
   /properties
   body
 release version=1.1-SNAPSHOT date=in SVN
+  action dev=dion type=addAdded Script and ScriptFactory to allow 
scripts to be executed from text, files or a URL./action
   action dev=dion type=addAdded implementation for bitwise 
operators: and, complement, or, xor./action
   action dev=dion type=addAdded implementation for the foreach 
statement./action
   action dev=dion type=addAdded implementation for the while 
statement./action



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



DO NOT REPLY [Bug 31186] - [jexl] Needs definable functions

2006-04-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=31186.
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=31186


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
Version|1.0 Final   |unspecified




--- Additional Comments From [EMAIL PROTECTED]  2006-04-04 01:24 ---
Grammar changes are scheduled for Jexl 2.x

-- 
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 31188] - [jexl] Make possible checking for unresolved variables

2006-04-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=31188.
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=31188


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




--- Additional Comments From [EMAIL PROTECTED]  2006-04-04 01:28 ---
I'd rather we do this as part of JEXL 2.x where we can separate the grammar from
the implementation of the language.

-- 
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 31189] - [jexl] Don't make null convertible into anything

2006-04-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=31189.
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=31189


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




--- Additional Comments From [EMAIL PROTECTED]  2006-04-04 01:29 ---
Move to JEXL 2.0 where we can better handle and centralise this.

-- 
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 38320] - [jexl] Make JEXL allow for an Uberspect plugin

2006-04-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38320.
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=38320


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




--- Additional Comments From [EMAIL PROTECTED]  2006-04-04 01:32 ---
I don't think the context is the best place to allow plugging in the Uberspect,
it really needs to be somewhere else, like the factories.

This idea is a good one, but I think our current implementation makes it hard to
plug it in correctly.

-- 
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 39193] New: - [JEXL] Static method resolution and changes to context

2006-04-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=39193.
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=39193

   Summary: [JEXL] Static method resolution and changes to context
   Product: Commons
   Version: 1.0 Final
  Platform: Other
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P2
 Component: JEXL
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


From: Guido Anzuoni [EMAIL PROTECTED]

Here I will try to explain may changes to see if you agree to include in the 
trunk.
1. UberspectImpl
I need to include static methods resolution in expressions (e.g.
System.currentTimeMillis()). I patched the class to allow it.

2. JexlContext
Resolving vars using a Map is not enough flexible for my needs. I have modified
it to have a single method
public Object resolveVariable(String var);

This allows me for better flexibility in the resolution process.
I have implemented a JextContext based on a java.util.Map, an extensible
JexlContext and a delegating JexlContext.
The extensible resolver is abstract and has a parent context to which
delegates in the case local resolution failes.
Delegating implementation extends the extensible context and uses another
JexlContext for local resolution.

More, I have removed any reference to JexlContex.getVars() in the code.

If you wish I can send the modified classes to better evaluate my changes.

-- 
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 39193] - [JEXL] Static method resolution and changes to context

2006-04-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=39193.
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=39193





--- Additional Comments From [EMAIL PROTECTED]  2006-04-04 01:39 ---
Created an attachment (id=18022)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=18022action=view)
Changes as per description


-- 
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: r391207 - in /jakarta/commons/proper/jexl/trunk/src: java/org/apache/commons/jexl/util/introspection/UberspectImpl.java test/org/apache/commons/jexl/JexlTest.java

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 18:13:22 2006
New Revision: 391207

URL: http://svn.apache.org/viewcvs?rev=391207view=rev
Log:
Allow static methods to be executed on classes, e.g.
if the context contains: Boolean.class as 'variable', 
variable.valueOf('true') should work.

Modified:

jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/UberspectImpl.java

jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/JexlTest.java

Modified: 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/UberspectImpl.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/UberspectImpl.java?rev=391207r1=391206r2=391207view=diff
==
--- 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/UberspectImpl.java
 (original)
+++ 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/UberspectImpl.java
 Mon Apr  3 18:13:22 2006
@@ -135,6 +135,9 @@
 return null;
 
 Method m = introspector.getMethod(obj.getClass(), methodName, args);
+if (m == null  obj instanceof Class) {
+m = introspector.getMethod((Class) obj, methodName, args);
+}
 
 return (m == null) ? null : new VelMethodImpl(m);
 }

Modified: 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/JexlTest.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/JexlTest.java?rev=391207r1=391206r2=391207view=diff
==
--- 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/JexlTest.java
 (original)
+++ 
jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/JexlTest.java
 Mon Apr  3 18:13:22 2006
@@ -855,6 +855,14 @@
 assertExpression(jc, aBool.valueOf('true'), Boolean.TRUE);
 }
 
+public void testStaticMethodInvocationOnClasses() throws Exception
+{
+JexlContext jc = JexlHelper.createContext();
+jc.getVars().put(Boolean, Boolean.class);
+assertExpression(jc, Boolean.valueOf('true'), Boolean.TRUE);
+
+}
+
 /**
  * Make sure bad syntax throws ParseException
  * @throws Exception on errors



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



DO NOT REPLY [Bug 39193] - [JEXL] Static method resolution and changes to context

2006-04-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=39193.
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=39193


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




--- Additional Comments From [EMAIL PROTECTED]  2006-04-04 02:13 ---
I've implemented the static method resolution of this bug, but the rework of
context I think should happen in Jexl 2.x

-- 
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: r391208 - /jakarta/commons/proper/jexl/trunk/xdocs/changes.xml

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 18:18:56 2006
New Revision: 391208

URL: http://svn.apache.org/viewcvs?rev=391208view=rev
Log:
Allow static methods to be executed on classes, e.g.
if the context contains: Boolean.class as 'variable', 
variable.valueOf('true') should work.

Modified:
jakarta/commons/proper/jexl/trunk/xdocs/changes.xml

Modified: jakarta/commons/proper/jexl/trunk/xdocs/changes.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/xdocs/changes.xml?rev=391208r1=391207r2=391208view=diff
==
--- jakarta/commons/proper/jexl/trunk/xdocs/changes.xml (original)
+++ jakarta/commons/proper/jexl/trunk/xdocs/changes.xml Mon Apr  3 18:18:56 2006
@@ -25,6 +25,7 @@
   /properties
   body
 release version=1.1-SNAPSHOT date=in SVN
+  action dev=dion type=fix issue=39193 due-to=Guido AnzuoniAllow 
for static methods to be called on classes and not just objects./action
   action dev=dion type=addAdded Script and ScriptFactory to allow 
scripts to be executed from text, files or a URL./action
   action dev=dion type=addAdded implementation for bitwise 
operators: and, complement, or, xor./action
   action dev=dion type=addAdded implementation for the foreach 
statement./action



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



svn commit: r391209 - /jakarta/commons/proper/jexl/trunk/xdocs/changes.xml

2006-04-03 Thread dion
Author: dion
Date: Mon Apr  3 18:25:21 2006
New Revision: 391209

URL: http://svn.apache.org/viewcvs?rev=391209view=rev
Log:
Use unreleased rather than 'In SVN'.

Modified:
jakarta/commons/proper/jexl/trunk/xdocs/changes.xml

Modified: jakarta/commons/proper/jexl/trunk/xdocs/changes.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/xdocs/changes.xml?rev=391209r1=391208r2=391209view=diff
==
--- jakarta/commons/proper/jexl/trunk/xdocs/changes.xml (original)
+++ jakarta/commons/proper/jexl/trunk/xdocs/changes.xml Mon Apr  3 18:25:21 2006
@@ -24,7 +24,7 @@
 author email=[EMAIL PROTECTED]dIon Gillard/author
   /properties
   body
-release version=1.1-SNAPSHOT date=in SVN
+release version=1.1-SNAPSHOT date=unreleased
   action dev=dion type=fix issue=39193 due-to=Guido AnzuoniAllow 
for static methods to be called on classes and not just objects./action
   action dev=dion type=addAdded Script and ScriptFactory to allow 
scripts to be executed from text, files or a URL./action
   action dev=dion type=addAdded implementation for bitwise 
operators: and, complement, or, xor./action



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