Re: [VFS] Snapshot timestamped version has disappeared from the m1 snapshot repo!

2006-07-27 Thread Mario Ivankovits
Hi Wendy!

 Changing the build to publish both -MMDD.jar and -SNAPSHOT.jar
 might help, then the latest code would always be available at a fixed
 filename.
I think this is a great idea.
Users in the past already asked to have this thing.

@phil: What do you think, can we have this?
Or is it a bad idea to do this for all projects by default?
I can setup my own cronjob to create the link then.


Ciao,
Mario


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



Re: [vfs] build failing

2006-07-27 Thread Mario Ivankovits
Hi Phil!

Sorry for being late, too much happened lately.

 Another thing we can look into is getting the vmbuild server
 configured so that the tests will run.  As long as this can be done
 securely, and you have some docs (or script) on what to do, I can help
 with that.
Yes, this will be great.
I'll setup a documentation and send it to you through pm if you don't mind.

Generally I think this VM should not use a persistent filesytem, its no
problem if it starts over every time it is restarted - in fact, I'd
appreciate this behavior.

Security might be a little problem. I have to setup a properties file
with username/password which will be used to login to the various
services. So the best will be if the vm is not reachable from anything
else than the build system. I can setup its own firewall for this.
Though, if it is not persistent it should not be that a problem.

Ciao,
Mario


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



svn commit: r425975 - in /jakarta/commons/sandbox/js2j/trunk/src: main/java/org/apache/commons/js2j/ test/ test/java/ test/java/org/ test/java/org/apache/ test/java/org/apache/commons/ test/java/org/a

2006-07-27 Thread mrdon
Author: mrdon
Date: Wed Jul 26 23:33:49 2006
New Revision: 425975

URL: http://svn.apache.org/viewvc?rev=425975view=rev
Log:
Adding testing framework, started bringing over struts flow js tests

Added:
jakarta/commons/sandbox/js2j/trunk/src/test/
jakarta/commons/sandbox/js2j/trunk/src/test/java/
jakarta/commons/sandbox/js2j/trunk/src/test/java/org/
jakarta/commons/sandbox/js2j/trunk/src/test/java/org/apache/
jakarta/commons/sandbox/js2j/trunk/src/test/java/org/apache/commons/
jakarta/commons/sandbox/js2j/trunk/src/test/java/org/apache/commons/js2j/

jakarta/commons/sandbox/js2j/trunk/src/test/java/org/apache/commons/js2j/TestScript.java

jakarta/commons/sandbox/js2j/trunk/src/test/java/org/apache/commons/js2j/WrappersTest.java
Modified:

jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableMap.java

jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/SugarWrapFactory.java

Modified: 
jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableMap.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableMap.java?rev=425975r1=425974r2=425975view=diff
==
--- 
jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableMap.java
 (original)
+++ 
jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableMap.java
 Wed Jul 26 23:33:49 2006
@@ -79,6 +79,7 @@
 if (value instanceof NativeJavaObject) {
 value = ((NativeJavaObject)value).unwrap();
 }
+System.out.println(putting:+value+ class:+value.getClass());
 map.put(name, value);
 }
 

Modified: 
jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/SugarWrapFactory.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/SugarWrapFactory.java?rev=425975r1=425974r2=425975view=diff
==
--- 
jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/SugarWrapFactory.java
 (original)
+++ 
jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/SugarWrapFactory.java
 Wed Jul 26 23:33:49 2006
@@ -104,7 +104,7 @@
 } else if (javaObject instanceof List) {
 wrap = new ScriptableList(scope, javaObject, staticType, map);
 } else if (dynabeanClass != null  
dynabeanClass.isAssignableFrom(javaObject.getClass())) {
-new ScriptableDynaBean(scope, javaObject, staticType, map);
+wrap = new ScriptableDynaBean(scope, javaObject, staticType, map);
 } else {
 wrap = new JavaObjectWrapper(scope, javaObject, staticType, map);
 }

Added: 
jakarta/commons/sandbox/js2j/trunk/src/test/java/org/apache/commons/js2j/TestScript.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/sandbox/js2j/trunk/src/test/java/org/apache/commons/js2j/TestScript.java?rev=425975view=auto
==
--- 
jakarta/commons/sandbox/js2j/trunk/src/test/java/org/apache/commons/js2j/TestScript.java
 (added)
+++ 
jakarta/commons/sandbox/js2j/trunk/src/test/java/org/apache/commons/js2j/TestScript.java
 Wed Jul 26 23:33:49 2006
@@ -0,0 +1,64 @@
+/*
+ * 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.js2j;
+
+import org.mozilla.javascript.Context;
+import org.mozilla.javascript.Scriptable;
+import org.mozilla.javascript.tools.shell.Global;
+
+import junit.framework.TestCase;
+
+public abstract class TestScript extends TestCase {
+
+Context cx = null;
+Scriptable scope = null;
+protected String script = ;
+
+public TestScript() {
+super();
+}
+
+public TestScript(String arg0) {
+super(arg0);
+}
+
+protected void setUp() throws Exception {
+cx = Context.enter();
+cx.setWrapFactory(new SugarWrapFactory());
+scope = new Global(cx);
+}
+
+protected void test(String script, String expected) throws Exception {
+String val = run(script);
+if (!expected.equals(val)) {
+fail(Expression '+script+' should have returned '+expected+', 
+
+ but instead 

[Jakarta-commons Wiki] Update of VFS by MarioIvankovits

2006-07-27 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Jakarta-commons Wiki 
for change notification.

The following page has been changed by MarioIvankovits:
http://wiki.apache.org/jakarta-commons/VFS

--
  Lets start creating a FAQ:
  
  '''VfsFaq'''
+ '''VfsFSCapabilitiesMatrix'''
  
  
  

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



[Jakarta-commons Wiki] Update of VFS by MarioIvankovits

2006-07-27 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Jakarta-commons Wiki 
for change notification.

The following page has been changed by MarioIvankovits:
http://wiki.apache.org/jakarta-commons/VFS

--
  
  Lets start creating a FAQ:
  
- '''VfsFaq'''
+  * '''VfsFaq'''
- '''VfsFSCapabilitiesMatrix'''
+  * '''VfsCapabilitiesMatrix'''
  
  
  

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



[Jakarta-commons Wiki] Update of VfsCapabilitiesMatrix by MarioIvankovits

2006-07-27 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Jakarta-commons Wiki 
for change notification.

The following page has been changed by MarioIvankovits:
http://wiki.apache.org/jakarta-commons/VfsCapabilitiesMatrix

New page:
= VFS Filesystem Capabilities Matrix =


|| 
||bz2||ftp||gzip||http||jar||local||ram||res||sftp||smb||tar||temp||url||webdav||zip||
||getType||x||x||x||x||x||x||x|| ||x||x||x||x|| ||x||x||
||create|| ||x|| || || ||x||x|| ||x||x|| ||x|| ||x
||delete|| ||x|| || || ||x||x|| ||x||x|| ||x|| ||x
||rename|| ||x|| || || ||x||x|| ||x||x|| ||x|| ||x
||listChildren||x||x||x|| ||x||x||x|| ||x||x||x||x|| ||x||x||
||readContent||x||x||x||x||x||x||x|| ||x||x||x||x||x||x||x||
||writeContent||x||x||x|| || ||x||x|| ||x||x|| ||x|| ||x
||appendContent|| ||x|| || || ||x||x|| || ||x|| ||x|| || 
||randomAccessRead|| ||x|| ||x|| ||x||x|| ||x||x|| ||x|| ||x
||randomAccessWrite|| || || || || ||x||x|| || ||x|| ||x|| || 
||getLastModified||x||x||x||x||x||x||x|| ||x||x||x||x||x||x||x||
||URI||x||x||x||x||x||x||x|| ||x||x||x||x||x||x||x||
||compress||x|| ||x|| ||x|| || || || || || || || || ||x||
||attributes|| || || ||x||x|| || || || || || || || ||x
||virtual|| || || || ||x|| || || || || ||x|| || || ||x||
||fsAttributes|| || || || ||x|| || || || || || || || || 
||signing|| || || || ||x|| || || || || || || || || 
||manifestAttributes|| || || || ||x|| || || || || || || || || 
||setLastModifiedFile|| || || || || ||x||x|| ||x|| || ||x|| || 
||setLastModifiedFolder|| || || || || ||x||x|| || || || ||x|| || 
||dispatcher|| || || || || || || ||x|| || || || || || 


== Legend ==

 * getType: ''allow to determine the type (file/folder) of a entry''
 * create: ''create a entry''
 * delete: ''delete a entry''
 * rename: ''rename a entry''
 * listChildren: ''list entries below''
 * readContent: ''read the content of a entry''
 * writeContent: ''write content to a entry''
 * appendContent: ''append content to a already existing entry''
 * randomAccessRead: ''randomly read the content of a entry - allows you to set 
the read position within the content''
 * randomAccessWrite: ''randomly write the content of a entry - allows you to 
set the write position within the content''
 * getLastModified: ''get the last modification time of a entry''
 * setLastModifiedFile: ''allow to change the last modification time on a file''
 * setLastModifiedFolder: ''allow to change the last modification time on a 
folder''
 * URI: ''support URIs''
 * compress: ''compresses the content''
 * virtual: ''contains a filesystem''
 * attributes: ''supports file attributes''
 * fsAttributs: ''supports file system attributes''
 * signing: ''can sign file content''
 * manifestAttributes: ''supports the set of manifest attributes''
 * dispatcher: ''not a real fs implementation, just dispatches to one of the 
other implementations''

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



Re: svn commit: r425928 - /jakarta/commons/sandbox/js2j/

2006-07-27 Thread Henri Yandell

Sowhat's the js2j component?

It needs to be added to the sandbox svn:externals btw.

Hen

On 7/26/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Author: mrdon
Date: Wed Jul 26 18:46:24 2006
New Revision: 425928

URL: http://svn.apache.org/viewvc?rev=425928view=rev
Log:
Creating the js2j project

Added:
jakarta/commons/sandbox/js2j/
  - copied from r425927, jakarta/commons/sandbox/project-template/


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



[jira] Commented: (VFS-51) [TMP] Root dir for temp filesystem should be temp system dir by default

2006-07-27 Thread Thomas Hoppe (JIRA)
[ http://issues.apache.org/jira/browse/VFS-51?page=comments#action_12423815 
] 

Thomas Hoppe commented on VFS-51:
-

The problem is even worse:

I have a restricted account and If I run my app using VFS, I get:

Caused by: org.apache.commons.vfs.FileSystemException: Could not write to 
tmp:///webdav_tmp.c1.

Unfortunately even with these lines:

fsManager = VFS.getManager();
DefaultFileReplicator tempStore = new 
DefaultFileReplicator(new File(C:/temp)); 

((DefaultFileSystemManager)fsManager).setTemporaryFileStore(tempStore);

I cannot change that behaviour.
Shouldn't VFS change to the supplied temp directory that way?

Thomas

 [TMP] Root dir for temp filesystem should be temp system dir by default
 ---

 Key: VFS-51
 URL: http://issues.apache.org/jira/browse/VFS-51
 Project: Commons VFS
  Issue Type: Bug
Affects Versions: Nightly Builds
 Environment: 1.0-RC8-SNAPSHOT, Windows XP, Sun JVM (1.4, 1.5, 1.6)
Reporter: Sergey Vladimirov

 Root dir for temp filesystem should be temp system dir by default, not root 
 dir of system drive.
 I'm using tmp filesystem to perform JUnit tests, and i need to clean up my 
 root folder of C: every time after tests.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



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



[vfs] split of vfs

2006-07-27 Thread Mario Ivankovits
Hi!

The pressure to release VFS is getting higher and higher :-)

And maybe there is a solution to restart the release cycle even with all
the open stuff not solved.

Whats missing to release VFS:
*) commons-compress release
*) webdav-client (slide) release
*) solving the jcifs licensing issue


If we split VFS in two pieces

- commons-vfs.jar
- commons-vfs-sandbox.jar

it might be manageable. The sandbox jar isn't releasable, its a sandbox
- so no additional work.


Initially, this sandbox contains the following filesystems:
* bz2
* tar
* webdav
* smb

The user can activate them by simply plugging the
commons-vfs-sandbox.jar into the classpath.


What do you think?

Ciao,
Mario


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



Re: [vfs] split of vfs

2006-07-27 Thread Mladen Turk

Mario Ivankovits wrote:

Hi!


Initially, this sandbox contains the following filesystems:
* bz2
* tar
* webdav
* smb

The user can activate them by simply plugging the
commons-vfs-sandbox.jar into the classpath.



Then why not split that further and have
commons-vfs-bz2.jar etc...

This way the core would be independent of
the implementation, as well building
the .bz2 or something like will not be
dependent of the external libs used only by
the specifics like webdav, ftp, etc...
If some implementation needs an external lib
like httpclient, and others don't, then only
that component should be dependent of it, not
the entire package.

Regards,
Mladen.

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



Re: [vfs] split of vfs

2006-07-27 Thread C. Grobmeier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 Initially, this sandbox contains the following filesystems:
 * bz2
 * tar
 * webdav
 * smb
 
 The user can activate them by simply plugging the
 commons-vfs-sandbox.jar into the classpath.


I think this is a great idea?and would like to see that this way.
This would also take some pressure from the compress project.

For the legal issue: if this cannot be solved, a sf.net project would do
fine. Maybe this is useful for other commons projects too?

my2pence
- - Chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEyJ2akv8rKBUE/T4RAkSfAJ41sr/34LXTA7sI3MR7kHrLPRNNqACgin3V
+1B7sPVGpruD02P7MXNZgCI=
=GCyR
-END PGP SIGNATURE-

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



Re: [vfs] split of vfs

2006-07-27 Thread Mladen Turk

C. Grobmeier wrote:


The user can activate them by simply plugging the
commons-vfs-sandbox.jar into the classpath.



I think this is a great idea?and would like to see that this way.
This would also take some pressure from the compress project.

For the legal issue: if this cannot be solved, a sf.net project would do
fine. Maybe this is useful for other commons projects too?



What legal issues are you refering?
The ASF has prove it can create anything from scratch
under the ASF license :)

Regards,
Mladen.

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



Re: [vfs] split of vfs

2006-07-27 Thread C. Grobmeier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 What legal issues are you refering?

- From the users mailinglist:
* we depend on jcifs (samba/smb) which changed its license in the past
to lgpl, so this is a violation of the ASF rules we currently
investigate. (Mario)

 The ASF has prove it can create anything from scratch
 under the ASF license :)

hehe truly :-)
- - Chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEyJ/+kv8rKBUE/T4RAmMIAKCA2VOTtISdA23Yp+4wRbZ9qldIIgCdEsO7
zg63DwxD1IVal5n2+4KNbWY=
=EWzJ
-END PGP SIGNATURE-

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



Re: [vfs] split of vfs

2006-07-27 Thread C. Grobmeier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 This way the core would be independent of
 the implementation, as well building
 the .bz2 or something like will not be
 dependent of the external libs used only by
 the specifics like webdav, ftp, etc...
 If some implementation needs an external lib
 like httpclient, and others don't, then only
 that component should be dependent of it, not
 the entire package.

i don't like these thousand mini-jars...
must there be a vote for every one of these mini-jars?
Makes lots of noise

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEyKBmkv8rKBUE/T4RAsmzAKCG6E22wFvojG7hVGJoKlBUAsPl+gCgj4Hj
ez/itcSHmOD8XpZmdCGJpyU=
=WUrF
-END PGP SIGNATURE-

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



Re: [vfs] split of vfs

2006-07-27 Thread Mario Ivankovits
Hi!
 Then why not split that further and have
 commons-vfs-bz2.jar etc...
Yes, this is something Vincent Massol also told me to do.
The reasons I wanted to go down to two jars are:

*) each jar will have its own release cycle, means, we have to vote for
each artifact, no? I think the number of mails in commons-dev is already
high enough ;-)

*) I have the feeling that maintaining it is way too much work for me
now, say, building all these releases, checking them and so on.
Once VFS again has a significant number of developers (or its own
release manager) such a structure might be manageable.
I know that it will be the nicer structure, but should a commons project
have such a complicated structure, I guess no.
Maybe it might work better if VFS is a TLP (or at least out of commons)
with its own mailing list and so on, though, not sure if/when this will
happen. The lack of developers is definitely a NoNo for this.

Ciao,
Mario


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



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

2006-07-27 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 81 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.
 -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: 18 secs
Command Line: maven --offline jar 
[Working Directory: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/jsl]
CLASSPATH: 
/opt/jdk1.5/lib/tools.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-swing.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-trax.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-junit.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-nodeps.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/usr/local/gump/public/workspace/commons-cli-1.0.x/target/commons-cli-27072006.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-27072006.jar:/usr/local/gump/public/workspace/commons-jelly/target/commons-jelly-27072006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/ant/target/commons-jelly-tags-ant-27072006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/junit/target/commons-jelly-tags-junit-27072006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/log/target/commons-jelly-tags-log-27072006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/xml/target/commons-jelly-tags-xml-27072006.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-27072006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-27072006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-27072006.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/public/workspace/jaxen/target/jaxen-27072006.jar
-
[junit] at 
org.apache.commons.jelly.tags.junit.AssertTagSupport.fail(AssertTagSupport.java:63)
[junit] at 
org.apache.commons.jelly.tags.junit.AssertTag.doTag(AssertTag.java:58)
[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.impl.StaticTag.doTag(StaticTag.java:65)
[junit] at 
org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112)
[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 

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

2006-07-27 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 81 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.
 -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: 18 secs
Command Line: maven --offline jar 
[Working Directory: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/jsl]
CLASSPATH: 
/opt/jdk1.5/lib/tools.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-swing.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-trax.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-junit.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-nodeps.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/usr/local/gump/public/workspace/commons-cli-1.0.x/target/commons-cli-27072006.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-27072006.jar:/usr/local/gump/public/workspace/commons-jelly/target/commons-jelly-27072006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/ant/target/commons-jelly-tags-ant-27072006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/junit/target/commons-jelly-tags-junit-27072006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/log/target/commons-jelly-tags-log-27072006.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/xml/target/commons-jelly-tags-xml-27072006.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-27072006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-27072006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-27072006.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/public/workspace/jaxen/target/jaxen-27072006.jar
-
[junit] at 
org.apache.commons.jelly.tags.junit.AssertTagSupport.fail(AssertTagSupport.java:63)
[junit] at 
org.apache.commons.jelly.tags.junit.AssertTag.doTag(AssertTag.java:58)
[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.impl.StaticTag.doTag(StaticTag.java:65)
[junit] at 
org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112)
[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 

RE: [vfs] split of vfs

2006-07-27 Thread Jörg Schaible
Mario Ivankovits wrote on Thursday, July 27, 2006 1:15 PM:

 Hi!
 Then why not split that further and have
 commons-vfs-bz2.jar etc...
 Yes, this is something Vincent Massol also told me to do.
 The reasons I wanted to go down to two jars are:
 
 *) each jar will have its own release cycle, means, we have
 to vote for
 each artifact, no? I think the number of mails in commons-dev
 is already
 high enough ;-)
 
 *) I have the feeling that maintaining it is way too much work for me
 now, say, building all these releases, checking them and so on.
 Once VFS again has a significant number of developers (or its own
 release manager) such a structure might be manageable.
 I know that it will be the nicer structure, but should a
 commons project
 have such a complicated structure, I guess no.
 Maybe it might work better if VFS is a TLP (or at least out
 of commons)
 with its own mailing list and so on, though, not sure if/when
 this will
 happen. The lack of developers is definitely a NoNo for this.

Well, therefore I would not split it at all. If you feel that the core API is 
right, just release 1.0 with all stuff left outside, that might cause licensing 
trouble. You may release 1.1 later on easily with the stuff included as soon as 
you have answers. As marked out in the other thread, marking dependencies as 
optional is perfectly valid.

- Jörg

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



svn commit: r426050 - in /jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local: LocalFile.java LocalFileSystem.java

2006-07-27 Thread imario
Author: imario
Date: Thu Jul 27 05:46:37 2006
New Revision: 426050

URL: http://svn.apache.org/viewvc?rev=426050view=rev
Log:
VFS-51 - fixed handling of rootFile for localFileSystem to make it correctly 
work again with temporary fileSystem

Modified:

jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFile.java

jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFileSystem.java

Modified: 
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFile.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFile.java?rev=426050r1=426049r2=426050view=diff
==
--- 
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFile.java
 (original)
+++ 
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFile.java
 Thu Jul 27 05:46:37 2006
@@ -41,15 +41,19 @@
 extends AbstractFileObject
 implements FileObject
 {
+private final String rootFile;
+
 private File file;
 
 /**
  * Creates a non-root file.
  */
 protected LocalFile(final LocalFileSystem fileSystem,
+final String rootFile,
 final FileName name) throws FileSystemException
 {
 super(name, fileSystem);
+this.rootFile = rootFile;
 }
 
 /**
@@ -69,8 +73,8 @@
 if (file == null)
 {
 // Remove the file:///
-LocalFileName localFileName = (LocalFileName) getName();
-String fileName = localFileName.getRootFile() + 
getName().getPathDecoded();
+// LocalFileName localFileName = (LocalFileName) getName();
+String fileName = rootFile + getName().getPathDecoded();
 // fileName = UriParser.decode(fileName);
 file = new File(fileName);
 }
@@ -88,7 +92,7 @@
 {
 return FileType.IMAGINARY;
 }
-
+
 if (file.isDirectory())
 {
 return FileType.FOLDER;

Modified: 
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFileSystem.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFileSystem.java?rev=426050r1=426049r2=426050view=diff
==
--- 
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFileSystem.java
 (original)
+++ 
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFileSystem.java
 Thu Jul 27 05:46:37 2006
@@ -53,7 +53,7 @@
 protected FileObject createFile(final FileName name) throws 
FileSystemException
 {
 // Create the file
-return new LocalFile(this, name);
+return new LocalFile(this, rootFile, name);
 }
 
 /**



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



svn commit: r426055 - /jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/impl/DefaultFileReplicator.java

2006-07-27 Thread imario
Author: imario
Date: Thu Jul 27 06:01:37 2006
New Revision: 426055

URL: http://svn.apache.org/viewvc?rev=426055view=rev
Log:
use system property java.io.tmpdir to decide where to put the VFS temp files

Modified:

jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/impl/DefaultFileReplicator.java

Modified: 
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/impl/DefaultFileReplicator.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/impl/DefaultFileReplicator.java?rev=426055r1=426054r2=426055view=diff
==
--- 
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/impl/DefaultFileReplicator.java
 (original)
+++ 
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/impl/DefaultFileReplicator.java
 Thu Jul 27 06:01:37 2006
@@ -74,7 +74,9 @@
 {
 if (tempDir == null)
 {
-tempDir = new File(vfs_cache).getAbsoluteFile();
+String baseTmpDir = System.getProperty(java.io.tmpdir);
+
+tempDir = new File(baseTmpDir, vfs_cache).getAbsoluteFile();
 }
 
 filecount = new Random().nextInt()  0x;



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



svn commit: r426058 - in /jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs: Resources.properties impl/DefaultFileReplicator.java

2006-07-27 Thread imario
Author: imario
Date: Thu Jul 27 06:07:39 2006
New Revision: 426058

URL: http://svn.apache.org/viewvc?rev=426058view=rev
Log:
added log.info message to give some hints where the temp-files are placed

Modified:

jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/Resources.properties

jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/impl/DefaultFileReplicator.java

Modified: 
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/Resources.properties
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/Resources.properties?rev=426058r1=426057r2=426058view=diff
==
--- 
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/Resources.properties
 (original)
+++ 
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/Resources.properties
 Thu Jul 27 06:07:39 2006
@@ -132,6 +132,7 @@
 vfs.impl/init-replicator.error=Could not initialise file replicator.
 vfs.impl/already-inited.error=Manager already inited, cant change the 
configuration now.
 vfs.impl/invalid-decorator.error={0} is not a valid decorator. It has to 
extend DecoratedFileObject and must provide a single argument constructor 
which takes a FileObject
+vfs.impl/temp-dir.info=Using {0} as temporary files store.
 
 # StandardFileSystemManager
 vfs.impl/find-config-file.error=Could not find VFS configuration resource 
{0}.

Modified: 
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/impl/DefaultFileReplicator.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/impl/DefaultFileReplicator.java?rev=426058r1=426057r2=426058view=diff
==
--- 
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/impl/DefaultFileReplicator.java
 (original)
+++ 
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/impl/DefaultFileReplicator.java
 Thu Jul 27 06:07:39 2006
@@ -77,6 +77,9 @@
 String baseTmpDir = System.getProperty(java.io.tmpdir);
 
 tempDir = new File(baseTmpDir, vfs_cache).getAbsoluteFile();
+
+final String message = 
Messages.getString(vfs.impl/temp-dir.info, tempDir);
+VfsLog.info(getLogger(), log, message);
 }
 
 filecount = new Random().nextInt()  0x;



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



[jira] Resolved: (VFS-51) [TMP] Root dir for temp filesystem should be temp system dir by default

2006-07-27 Thread Mario Ivankovits (JIRA)
 [ http://issues.apache.org/jira/browse/VFS-51?page=all ]

Mario Ivankovits resolved VFS-51.
-

Fix Version/s: Nightly Builds
   Resolution: Fixed

Hi!

It's fixed now.

I also changed to honor the java.io.tmpdir system property, so it should work 
as expected now.

Thanks for reporting it!

Ciao,
Mario

 [TMP] Root dir for temp filesystem should be temp system dir by default
 ---

 Key: VFS-51
 URL: http://issues.apache.org/jira/browse/VFS-51
 Project: Commons VFS
  Issue Type: Bug
Affects Versions: Nightly Builds
 Environment: 1.0-RC8-SNAPSHOT, Windows XP, Sun JVM (1.4, 1.5, 1.6)
Reporter: Sergey Vladimirov
 Fix For: Nightly Builds


 Root dir for temp filesystem should be temp system dir by default, not root 
 dir of system drive.
 I'm using tmp filesystem to perform JUnit tests, and i need to clean up my 
 root folder of C: every time after tests.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



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



[jira] Closed: (VFS-51) [TMP] Root dir for temp filesystem should be temp system dir by default

2006-07-27 Thread Mario Ivankovits (JIRA)
 [ http://issues.apache.org/jira/browse/VFS-51?page=all ]

Mario Ivankovits closed VFS-51.
---


 [TMP] Root dir for temp filesystem should be temp system dir by default
 ---

 Key: VFS-51
 URL: http://issues.apache.org/jira/browse/VFS-51
 Project: Commons VFS
  Issue Type: Bug
Affects Versions: Nightly Builds
 Environment: 1.0-RC8-SNAPSHOT, Windows XP, Sun JVM (1.4, 1.5, 1.6)
Reporter: Sergey Vladimirov
 Fix For: Nightly Builds


 Root dir for temp filesystem should be temp system dir by default, not root 
 dir of system drive.
 I'm using tmp filesystem to perform JUnit tests, and i need to clean up my 
 root folder of C: every time after tests.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



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



Re: [vfs] split of vfs

2006-07-27 Thread Mario Ivankovits
Hi Jörg!
 Well, therefore I would not split it at all. If you feel that the core API is 
 right, just release 1.0 with all stuff left outside, that might cause 
 licensing trouble. You may release 1.1 later on easily with the stuff 
 included as soon as you have answers.
Not only licensing troubles, also the thing with snapshot/not-released
dependencies.

bz2 and tar hurts if they are not at least easily pluggable, sure, I can
copy compress (its not that big) to VFSs codebase (to a different
namespace), then, only smb and webdav is missing.
Its an option, but I like the snapshot jar way more.

 As marked out in the other thread, marking dependencies as optional is 
 perfectly valid.
   
Uhm ... this is not possible with maven 1, is it? Could you give me a
hint please.


Ciao,
Mario


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



Re: [vfs] split of vfs

2006-07-27 Thread Arnaud HERITIER

In M1 there's no transitive dependencies, thus your users will have to
define each dependency one by one.
But to improve the conversion between m1 and m2 poms for the repository, if
you deploy VFS with m1 you can add the following setting :
http://maven.apache.org/maven-1.x/using/bestpractices.html#Getting_ready_for_Maven_2
Arnaud


On 7/27/06, Mario Ivankovits [EMAIL PROTECTED] wrote:


Hi Jörg!
 Well, therefore I would not split it at all. If you feel that the core
API is right, just release 1.0 with all stuff left outside, that might
cause licensing trouble. You may release 1.1 later on easily with the
stuff included as soon as you have answers.
Not only licensing troubles, also the thing with snapshot/not-released
dependencies.

bz2 and tar hurts if they are not at least easily pluggable, sure, I can
copy compress (its not that big) to VFSs codebase (to a different
namespace), then, only smb and webdav is missing.
Its an option, but I like the snapshot jar way more.

 As marked out in the other thread, marking dependencies as optional is
perfectly valid.

Uhm ... this is not possible with maven 1, is it? Could you give me a
hint please.


Ciao,
Mario


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




RE: [vfs] split of vfs

2006-07-27 Thread Jörg Schaible
Arnaud HERITIER wrote on Thursday, July 27, 2006 3:57 PM:

 In M1 there's no transitive dependencies, thus your users will have to
 define each dependency one by one.
 But to improve the conversion between m1 and m2 poms for the
 repository, if you deploy VFS with m1 you can add the following
 setting :
 http://maven.apache.org/maven-1.x/using/bestpractices.html#Get
 ting_ready_for_Maven_2 Arnaud 

Wasn't there also a way to define optional, so that the POM 2.0 converter 
will automatically set them?

- Jörg

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



Re: [vfs] split of vfs

2006-07-27 Thread Mario Ivankovits
Hi !
 http://maven.apache.org/maven-1.x/using/bestpractices.html#Get
 ting_ready_for_Maven_2
 

 Wasn't there also a way to define optional, so that the POM 2.0 converter 
 will automatically set them?
   
The documentations says that this will be the case when adding

  properties
scopetest/scope
  /properties


to the dependency.

But I wonder how will this help Vincent?
I added Vincent as cc - Vincent, will this be of any help?

---
Mario


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



Re: [vfs] split of vfs

2006-07-27 Thread Carlos Sanchez

On 7/27/06, Jörg Schaible [EMAIL PROTECTED] wrote:

Arnaud HERITIER wrote on Thursday, July 27, 2006 3:57 PM:

 In M1 there's no transitive dependencies, thus your users will have to
 define each dependency one by one.
 But to improve the conversion between m1 and m2 poms for the
 repository, if you deploy VFS with m1 you can add the following
 setting :
 http://maven.apache.org/maven-1.x/using/bestpractices.html#Get
 ting_ready_for_Maven_2 Arnaud

Wasn't there also a way to define optional, so that the POM 2.0 converter 
will automatically set them?



properties
  optionaltrue/optional
/properties


- Jörg

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





--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride

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



Re: [vfs] split of vfs

2006-07-27 Thread Carlos Sanchez

I prefer several jars

On 7/27/06, Mario Ivankovits [EMAIL PROTECTED] wrote:

Hi!
 Then why not split that further and have
 commons-vfs-bz2.jar etc...
Yes, this is something Vincent Massol also told me to do.
The reasons I wanted to go down to two jars are:

*) each jar will have its own release cycle, means, we have to vote for
each artifact, no? I think the number of mails in commons-dev is already
high enough ;-)


You can release all of them together calling only for a vote, release
them separately is an optional (but useful) feature

VFS 1.0 can be a composition of several vfs-*-1.0 jars, with just one tag



*) I have the feeling that maintaining it is way too much work for me
now, say, building all these releases, checking them and so on.
Once VFS again has a significant number of developers (or its own
release manager) such a structure might be manageable.
I know that it will be the nicer structure, but should a commons project
have such a complicated structure, I guess no.
Maybe it might work better if VFS is a TLP (or at least out of commons)
with its own mailing list and so on, though, not sure if/when this will
happen. The lack of developers is definitely a NoNo for this.

Ciao,
Mario


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





--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride

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



Re: [vfs] split of vfs

2006-07-27 Thread Mladen Turk

Mario Ivankovits wrote:

Hi!

Then why not split that further and have
commons-vfs-bz2.jar etc...

Yes, this is something Vincent Massol also told me to do.
The reasons I wanted to go down to two jars are:

*) each jar will have its own release cycle, means, we have to vote for
each artifact, no? I think the number of mails in commons-dev is already
high enough ;-)



No. The release process would be like for the httpd.
We have core and we have core modules. The release depends
on all core modules, but you can build core without
modules. Take for example the httpd and mod_ssl.
mod_ssl depends on OpenSSL, but the httpd itself does not,
although its dependent on the mod_ssl, rely on mod_ssl.

The point is to have the modular build system, that
does not depend on protocol specific libs.

Regards,
Mladen.

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



RE: [vfs] split of vfs

2006-07-27 Thread Vincent Massol


 -Original Message-
 From: Mario Ivankovits [mailto:[EMAIL PROTECTED]
 Sent: jeudi 27 juillet 2006 16:23
 To: Jakarta Commons Developers List
 Cc: [EMAIL PROTECTED]
 Subject: Re: [vfs] split of vfs
 
 Hi !
  http://maven.apache.org/maven-1.x/using/bestpractices.html#Get
  ting_ready_for_Maven_2
 
 
  Wasn't there also a way to define optional, so that the POM 2.0
 converter will automatically set them?
 
 The documentations says that this will be the case when adding
 
   properties
 scopetest/scope
   /properties
 
 
 to the dependency.
 
 But I wonder how will this help Vincent?
 I added Vincent as cc - Vincent, will this be of any help?

I have already answered to Jörg Schaible on the user list. If you recall I
have even submitted a Maven2 POM (this optional stuff works only with
Maven2). See http://issues.apache.org/jira/browse/VFS-70

This doesn't help really me but is something to do when you move to M2.

Thanks
-Vincent

PS: My email is going to be moderated as I'm not subscribed.






___
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet !
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos 
expériences.
http://fr.answers.yahoo.com


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



Re: [VFS] Snapshot timestamped version has disappeared from the m1 snapshot repo!

2006-07-27 Thread Henri Yandell

On 7/26/06, Mario Ivankovits [EMAIL PROTECTED] wrote:

Hi Wendy!

 Changing the build to publish both -MMDD.jar and -SNAPSHOT.jar
 might help, then the latest code would always be available at a fixed
 filename.
I think this is a great idea.
Users in the past already asked to have this thing.

@phil: What do you think, can we have this?
Or is it a bad idea to do this for all projects by default?
I can setup my own cronjob to create the link then.


+1. The jars we're deploying seem useless currently if people can't
depend on them in a snapshot way. Do we even need the dated one?
Should it be SNAPSHOT-MMDD? I'm not sure what the recommended way
is to do snapshots nowadays.

Hen

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



Re: [VFS] Snapshot timestamped version has disappeared from the m1 snapshot repo!

2006-07-27 Thread Wendy Smoak

On 7/27/06, Henri Yandell [EMAIL PROTECTED] wrote:

On 7/26/06, Mario Ivankovits [EMAIL PROTECTED] wrote:



 @phil: What do you think, can we have this?
 Or is it a bad idea to do this for all projects by default?
 I can setup my own cronjob to create the link then.

+1. The jars we're deploying seem useless currently if people can't
depend on them in a snapshot way. Do we even need the dated one?
Should it be SNAPSHOT-MMDD? I'm not sure what the recommended way
is to do snapshots nowadays.


I think it needs to end in -SNAPSHOT for Maven to recognize it.  Do
you have a way to get the currentVersion out of project.xml/pom.xml
?  For VFS it's 1.0-RC8-SNAPSHOT.

The dated ones have some value.  If something goes wrong in the
latest nightly, you can change your pom to depend on yesterday's
until you sort out the problem.

This doesn't address Vincent's concern of having a stable build to
depend on, but that's what releases are for. :)

--
Wendy

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



JXPath, beans and the count function

2006-07-27 Thread Simone Gianni
Hi there,
we are developing paginated repeater for Cocoon. The cocoon repeaters
uses JXPath in their binding so that they can work on beans and XML
documents.

The goal for us is to display a very long list of elements from a
collection not fetching the entire content of the collection. This is
expecially useful when the collection is backed by a persistence layer
like hibernate or similar, and you have a very big rowset (we are
testing on an application with a list with 11000 elements in it).

Now, one key element for every pagination system is to retrieve the
total amount of items in the list. We tried to accomplish this with a
count(pathToList). Actually we have a bean having a getList method
returning a java.util.List instance, so we try count(list/*) ,
count(list), count(list/something), and we would expect JXPath to call
getList().size(). This is quite critical, because the list
implementation knows how to retrieve the number of rows without actually
fetching all the rows from the underlying dataset.

Unfortunately, what hapens is different. The
CoreFunction.functionCount() method does not recognize it as a
Collection, but as a EvalContext instead, and iterates on all the lines
to count the items (actually is the EvalContext.hasNext() method that
iterates on the entire collection).

What's strange is that there is a check in CoreFunction.functionCount()
to see if a Collection is in place and eventually call the
Collection.size() method, but this seems like it's never happening.

Could you please help us? Is it a JXPath bug or are we completely
missing something?

TIA, regards,
Simone Gianni,
Matthias Epheser

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



svn commit: r426191 - in /jakarta/commons/sandbox/js2j/trunk: ./ src/main/java/org/apache/commons/js2j/ src/test/java/org/apache/commons/js2j/

2006-07-27 Thread mrdon
Author: mrdon
Date: Thu Jul 27 11:38:11 2006
New Revision: 426191

URL: http://svn.apache.org/viewvc?rev=426191view=rev
Log:
Adding list and file tests, added a few more file methods, reorganized test
structure, cleaned up file handing in file extensions, auto-unwrap args
before call

Added:

jakarta/commons/sandbox/js2j/trunk/src/test/java/org/apache/commons/js2j/FileExtensionsTest.java

jakarta/commons/sandbox/js2j/trunk/src/test/java/org/apache/commons/js2j/ListExtensionsTest.java
Modified:
jakarta/commons/sandbox/js2j/trunk/pom.xml

jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ExtensionFunction.java

jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/FileExtensions.java

jakarta/commons/sandbox/js2j/trunk/src/test/java/org/apache/commons/js2j/TestScript.java

jakarta/commons/sandbox/js2j/trunk/src/test/java/org/apache/commons/js2j/WrappersTest.java

Modified: jakarta/commons/sandbox/js2j/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/jakarta/commons/sandbox/js2j/trunk/pom.xml?rev=426191r1=426190r2=426191view=diff
==
--- jakarta/commons/sandbox/js2j/trunk/pom.xml (original)
+++ jakarta/commons/sandbox/js2j/trunk/pom.xml Thu Jul 27 11:38:11 2006
@@ -121,5 +121,6 @@
 /configuration
   /plugin
 /plugins
+defaultGoalinstall/defaultGoal
   /build
 /project

Modified: 
jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ExtensionFunction.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ExtensionFunction.java?rev=426191r1=426190r2=426191view=diff
==
--- 
jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ExtensionFunction.java
 (original)
+++ 
jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ExtensionFunction.java
 Thu Jul 27 11:38:11 2006
@@ -17,6 +17,8 @@
 
 import org.mozilla.javascript.Context;
 import org.mozilla.javascript.Function;
+import org.mozilla.javascript.IdScriptableObject;
+import org.mozilla.javascript.NativeJavaObject;
 import org.mozilla.javascript.Scriptable;
 import org.mozilla.javascript.ScriptableObject;
 
@@ -31,7 +33,21 @@
 
 public Object call(Context cx, Scriptable scope, Scriptable thisObj, 
java.lang.Object[] args) {
 try {
+// Unwrap args and convert to Java types as appropriate
+for (int x=0; xargs.length; x++) {
+if (args[x] instanceof NativeJavaObject) {
+args[x] = ((NativeJavaObject)args[x]).unwrap();
+} else if (args[x] instanceof IdScriptableObject) {
+if 
(String.equals(((IdScriptableObject)args[x]).getClassName())) {
+args[x] = args[x].toString();
+}
+}
+}
+
+// Execute the function call
 Object o = execute(cx, scope, thisObj, args);
+
+// Wrap the result as necessary
 if (o instanceof Scriptable) {
 return o;
 } else if (o == target) {

Modified: 
jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/FileExtensions.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/FileExtensions.java?rev=426191r1=426190r2=426191view=diff
==
--- 
jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/FileExtensions.java
 (original)
+++ 
jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/FileExtensions.java
 Thu Jul 27 11:38:11 2006
@@ -25,6 +25,9 @@
 
 import org.mozilla.javascript.Context;
 import org.mozilla.javascript.Function;
+import org.mozilla.javascript.NativeJavaObject;
+import org.mozilla.javascript.RegExpProxy;
+import org.mozilla.javascript.ScriptRuntime;
 import org.mozilla.javascript.Scriptable;
 
 /**
@@ -34,7 +37,7 @@
 public class FileExtensions {
 
 
- /**
+/**
  *  Appends text to the file.
  *
  *  @funcParams String text
@@ -46,15 +49,19 @@
 public Object execute(Context cx, Scriptable scope, Scriptable 
thisObj, java.lang.Object[] args) 
 throws IOException {
 String text = args[0].toString();
-BufferedWriter writer = new BufferedWriter(new 
FileWriter(file, true));
-writer.write(text);
-writer.close();
+FileWriter writer = null;
+try {
+writer = new FileWriter(file, true);
+writer.write(text);
+} finally {
+writer.close();
+}
 return file;
 }
 

svn commit: r426200 - in /jakarta/commons/sandbox/js2j/trunk/src: main/java/org/apache/commons/js2j/ test/java/org/apache/commons/js2j/

2006-07-27 Thread mrdon
Author: mrdon
Date: Thu Jul 27 12:01:59 2006
New Revision: 426200

URL: http://svn.apache.org/viewvc?rev=426200view=rev
Log:
Cleanups, added Properties extension methods

Added:

jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/PropertiesExtensions.java

jakarta/commons/sandbox/js2j/trunk/src/test/java/org/apache/commons/js2j/PropertiesExtensionsTest.java
Modified:

jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/FileExtensions.java

jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/SugarWrapFactory.java

jakarta/commons/sandbox/js2j/trunk/src/test/java/org/apache/commons/js2j/TestScript.java

Modified: 
jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/FileExtensions.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/FileExtensions.java?rev=426200r1=426199r2=426200view=diff
==
--- 
jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/FileExtensions.java
 (original)
+++ 
jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/FileExtensions.java
 Thu Jul 27 12:01:59 2006
@@ -16,7 +16,6 @@
 package org.apache.commons.js2j;
 
 import java.io.BufferedReader;
-import java.io.BufferedWriter;
 import java.io.File;
 import java.io.FileReader;
 import java.io.FileWriter;
@@ -25,7 +24,6 @@
 
 import org.mozilla.javascript.Context;
 import org.mozilla.javascript.Function;
-import org.mozilla.javascript.NativeJavaObject;
 import org.mozilla.javascript.RegExpProxy;
 import org.mozilla.javascript.ScriptRuntime;
 import org.mozilla.javascript.Scriptable;

Added: 
jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/PropertiesExtensions.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/PropertiesExtensions.java?rev=426200view=auto
==
--- 
jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/PropertiesExtensions.java
 (added)
+++ 
jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/PropertiesExtensions.java
 Thu Jul 27 12:01:59 2006
@@ -0,0 +1,87 @@
+/*
+ * Copyright 1999-2004 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.js2j;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.util.Properties;
+
+import org.mozilla.javascript.Context;
+import org.mozilla.javascript.Scriptable;
+
+/**
+ * Adds various functions to java.util.Properties
+ * @targetClass java.util.Properties
+ */
+public class PropertiesExtensions {
+
+
+/**
+ *  Loads properties from a String or File.
+ *
+ *  @funcParams java.io.File file
+ *  @funcReturn java.util.Properties
+ *  @example props.load(file.properties)
+ */
+public static ExtensionFunction load(final Properties props) {
+return new ExtensionFunction() {
+public Object execute(Context cx, Scriptable scope, Scriptable 
thisObj, java.lang.Object[] args) 
+throws IOException {
+InputStream in = null;
+if (args[0] instanceof String) {
+in = new FileInputStream((String)args[0]);
+} else if (args[0] instanceof File) {
+in = new FileInputStream((File)args[0]);
+} else {
+in = (InputStream) args[0];
+}
+
+props.load(in);
+return props;
+}
+};
+}
+
+/**
+ *  Stores properties into a File.
+ *
+ *  @funcParams java.io.File file, String header
+ *  @funcReturn java.util.Properties
+ *  @example props.store(file.properties, My Header)
+ */
+public static ExtensionFunction store(final Properties props) {
+return new ExtensionFunction() {
+public Object execute(Context cx, Scriptable scope, Scriptable 
thisObj, java.lang.Object[] args) 
+throws IOException {
+OutputStream in = null;
+if (args[0] instanceof String) {

svn commit: r426219 - in /jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration: ./ plist/ tree/xpath/

2006-07-27 Thread oheger
Author: oheger
Date: Thu Jul 27 13:02:33 2006
New Revision: 426219

URL: http://svn.apache.org/viewvc?rev=426219view=rev
Log:
Added serialVersionUIDs to serializable classes; findbugs was complaining

Modified:

jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/CombinedConfiguration.java

jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationException.java

jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationKey.java

jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationRuntimeException.java

jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConversionException.java

jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DataConfiguration.java

jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DefaultConfigurationBuilder.java

jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/HierarchicalConfiguration.java

jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/HierarchicalXMLConfiguration.java

jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/SubnodeConfiguration.java

jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/XMLConfiguration.java

jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/plist/PropertyListConfiguration.java

jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/plist/XMLPropertyListConfiguration.java

jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointer.java

Modified: 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/CombinedConfiguration.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/CombinedConfiguration.java?rev=426219r1=426218r2=426219view=diff
==
--- 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/CombinedConfiguration.java
 (original)
+++ 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/CombinedConfiguration.java
 Thu Jul 27 13:02:33 2006
@@ -106,6 +106,11 @@
  */
 public static final int EVENT_COMBINED_INVALIDATE = 40;
 
+/**
+ * The serial version ID.
+ */
+private static final long serialVersionUID = 8338574525528692307L;
+
 /** Constant for the expression engine for parsing the at path. */
 private static final DefaultExpressionEngine AT_ENGINE = new 
DefaultExpressionEngine();
 

Modified: 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationException.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationException.java?rev=426219r1=426218r2=426219view=diff
==
--- 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationException.java
 (original)
+++ 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationException.java
 Thu Jul 27 13:02:33 2006
@@ -28,6 +28,11 @@
 public class ConfigurationException extends NestableException
 {
 /**
+ * The serial version ID.
+ */
+private static final long serialVersionUID = -1316746661346991484L;
+
+/**
  * Constructs a new codeConfigurationException/code without specified
  * detail message.
  */

Modified: 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationKey.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationKey.java?rev=426219r1=426218r2=426219view=diff
==
--- 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationKey.java
 (original)
+++ 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationKey.java
 Thu Jul 27 13:02:33 2006
@@ -61,6 +61,11 @@
 /** Constant for the initial StringBuffer size.*/
 private static final int INITIAL_SIZE = 32;
 
+/**
+ * The serial version ID.
+ */
+private static final long serialVersionUID = -4299732083605277656L;
+
 /** Holds a buffer with the so far created key.*/
 private StringBuffer keyBuffer;
 

Modified: 

svn commit: r426221 - in /jakarta/commons/sandbox/js2j/trunk: assembly/ assembly/src/ assembly/src/main/ assembly/src/main/assembly/ assembly/src/main/resources/ src/test/java/org/apache/commons/js2j/

2006-07-27 Thread mrdon
Author: mrdon
Date: Thu Jul 27 13:06:40 2006
New Revision: 426221

URL: http://svn.apache.org/viewvc?rev=426221view=rev
Log:
Adding an assembly to generate one combined e4x-capable jar

Added:
jakarta/commons/sandbox/js2j/trunk/assembly/
jakarta/commons/sandbox/js2j/trunk/assembly/pom.xml
jakarta/commons/sandbox/js2j/trunk/assembly/src/
jakarta/commons/sandbox/js2j/trunk/assembly/src/main/
jakarta/commons/sandbox/js2j/trunk/assembly/src/main/assembly/
jakarta/commons/sandbox/js2j/trunk/assembly/src/main/assembly/all.xml
jakarta/commons/sandbox/js2j/trunk/assembly/src/main/resources/
jakarta/commons/sandbox/js2j/trunk/assembly/src/main/resources/LICENSE.txt
jakarta/commons/sandbox/js2j/trunk/assembly/src/main/resources/NOTICE.txt
Modified:

jakarta/commons/sandbox/js2j/trunk/src/test/java/org/apache/commons/js2j/PropertiesExtensionsTest.java

Added: jakarta/commons/sandbox/js2j/trunk/assembly/pom.xml
URL: 
http://svn.apache.org/viewvc/jakarta/commons/sandbox/js2j/trunk/assembly/pom.xml?rev=426221view=auto
==
--- jakarta/commons/sandbox/js2j/trunk/assembly/pom.xml (added)
+++ jakarta/commons/sandbox/js2j/trunk/assembly/pom.xml Thu Jul 27 13:06:40 2006
@@ -0,0 +1,79 @@
+?xml version=1.0?
+!--
+/* 
+ * Copyright 2005-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.
+ *
+ * $Id: pom.xml 425796 2006-07-26 18:18:44Z mrdon $
+ */
+--
+
+project xmlns=http://maven.apache.org/POM/4.0.0; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
+ xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;
+modelVersion4.0.0/modelVersion
+groupIdorg.apache.commons/groupId
+artifactIdjs2j-assembly/artifactId
+version0.1-SNAPSHOT/version
+packagingpom/packaging
+nameJS2J Assembly/name
+description
+JS2J Assembly
+/description
+
+scm
+
connectionscm:svn:http://svn.apache.org/repos/asf/jakarta/commons/sandbox/js2j/trunk/assembly/connection
+developerConnection
+
scm:svn:https://svn.apache.org/repos/asf/jakarta/commons/sandbox/js2j/trunk/assembly/developerConnection
+
urlhttp://svn.apache.org/viewcvs.cgi/jakarta/commons/sandbox/js2j/trunk/assembly/url
+/scm
+
+build
+plugins
+   plugin
+artifactIdmaven-assembly-plugin/artifactId
+version2.0.1/version
+configuration
+descriptors
+descriptorsrc/main/assembly/all.xml/descriptor
+
!--descriptorsrc/main/assembly/bin.xml/descriptor--
+/descriptors
+finalNamecommons-js2j-${version}/finalName
+outputDirectorytarget/assembly/out/outputDirectory
+workDirectorytarget/assembly/work/workDirectory
+archive
+manifest
+mainClassorg.apache.commons.js2j.Main/mainClass
+/manifest
+/archive
+/configuration
+/plugin
+/plugins
+/build
+
+dependencies
+
+dependency
+groupIdorg.apache.commons/groupId
+artifactIdcommons-js2j/artifactId
+version${version}/version
+/dependency
+dependency
+groupIdxmlbeans/groupId
+artifactIdxbean/artifactId
+version1.0.4/version
+scoperuntime/scope
+/dependency
+   /dependencies
+
+/project

Added: jakarta/commons/sandbox/js2j/trunk/assembly/src/main/assembly/all.xml
URL: 
http://svn.apache.org/viewvc/jakarta/commons/sandbox/js2j/trunk/assembly/src/main/assembly/all.xml?rev=426221view=auto
==
--- jakarta/commons/sandbox/js2j/trunk/assembly/src/main/assembly/all.xml 
(added)
+++ jakarta/commons/sandbox/js2j/trunk/assembly/src/main/assembly/all.xml Thu 
Jul 27 13:06:40 2006
@@ -0,0 +1,50 @@
+!--
+/*
+ * $Id: all.xml 421815 2006-07-14 06:34:51Z wsmoak $
+ *
+ * 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
+ *
+ *  

svn commit: r426226 - /jakarta/commons/sandbox/js2j/trunk/assembly/src/main/assembly/all.xml

2006-07-27 Thread mrdon
Author: mrdon
Date: Thu Jul 27 13:14:34 2006
New Revision: 426226

URL: http://svn.apache.org/viewvc?rev=426226view=rev
Log:
Removed testing thing

Modified:
jakarta/commons/sandbox/js2j/trunk/assembly/src/main/assembly/all.xml

Modified: jakarta/commons/sandbox/js2j/trunk/assembly/src/main/assembly/all.xml
URL: 
http://svn.apache.org/viewvc/jakarta/commons/sandbox/js2j/trunk/assembly/src/main/assembly/all.xml?rev=426226r1=426225r2=426226view=diff
==
--- jakarta/commons/sandbox/js2j/trunk/assembly/src/main/assembly/all.xml 
(original)
+++ jakarta/commons/sandbox/js2j/trunk/assembly/src/main/assembly/all.xml Thu 
Jul 27 13:14:34 2006
@@ -25,15 +25,6 @@
 formatjar/format
   /formats
   includeBaseDirectoryfalse/includeBaseDirectory
-  fileSets
-fileSet
-  directorysrc/main/resources/directory
-  outputDirectory/MsETA-INF/outputDirectory
-  includes
-includeMANIFEST.MF/include
-  /includes
-/fileSet 
-  /fileSets
 
   dependencySets
 dependencySet



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



svn commit: r426227 - in /jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration: AbstractConfiguration.java PropertiesConfiguration.java tree/ViewNode.java

2006-07-27 Thread oheger
Author: oheger
Date: Thu Jul 27 13:17:14 2006
New Revision: 426227

URL: http://svn.apache.org/viewvc?rev=426227view=rev
Log:
Fixed some problems reported by findbugs

Modified:

jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/AbstractConfiguration.java

jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/PropertiesConfiguration.java

jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/ViewNode.java

Modified: 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/AbstractConfiguration.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/AbstractConfiguration.java?rev=426227r1=426226r2=426227view=diff
==
--- 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/AbstractConfiguration.java
 (original)
+++ 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/AbstractConfiguration.java
 Thu Jul 27 13:17:14 2006
@@ -1049,7 +1049,7 @@
 else if (value instanceof boolean[])
 {
 boolean[] array = (boolean[]) value;
-value = array.length == 0 ? null : new Boolean(array[0]);
+value = array.length == 0 ? null : array[0] ? Boolean.TRUE : 
Boolean.FALSE;
 }
 else if (value instanceof byte[])
 {

Modified: 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/PropertiesConfiguration.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/PropertiesConfiguration.java?rev=426227r1=426226r2=426227view=diff
==
--- 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/PropertiesConfiguration.java
 (original)
+++ 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/PropertiesConfiguration.java
 Thu Jul 27 13:17:14 2006
@@ -338,7 +338,7 @@
  * layout object will be created
  * @since 1.3
  */
-public void setLayout(PropertiesConfigurationLayout layout)
+public synchronized void setLayout(PropertiesConfigurationLayout layout)
 {
 this.layout = layout;
 }

Modified: 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/ViewNode.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/ViewNode.java?rev=426227r1=426226r2=426227view=diff
==
--- 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/ViewNode.java
 (original)
+++ 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/ViewNode.java
 Thu Jul 27 13:17:14 2006
@@ -52,9 +52,13 @@
 if (attr != null)
 {
 parent = attr.getParentNode();
+super.addAttribute(attr);
+attr.setParentNode(parent);
+}
+else
+{
+throw new IllegalArgumentException(Attribute node must not be 
null!);
 }
-super.addAttribute(attr);
-attr.setParentNode(parent);
 }
 
 /**
@@ -70,9 +74,13 @@
 if (child != null)
 {
 parent = child.getParentNode();
+super.addChild(child);
+child.setParentNode(parent);
+}
+else
+{
+throw new IllegalArgumentException(Child node must not be null!);
 }
-super.addChild(child);
-child.setParentNode(parent);
 }
 
 /**



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



svn commit: r426285 - /jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/invoke/AsyncTrigger.java

2006-07-27 Thread rahul
Author: rahul
Date: Thu Jul 27 15:28:06 2006
New Revision: 426285

URL: http://svn.apache.org/viewvc?rev=426285view=rev
Log:
Typo. Thanks to Dave Brosius dbrosius AT apache DOT org for the spot.

Modified:

jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/invoke/AsyncTrigger.java

Modified: 
jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/invoke/AsyncTrigger.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/invoke/AsyncTrigger.java?rev=426285r1=426284r2=426285view=diff
==
--- 
jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/invoke/AsyncTrigger.java
 (original)
+++ 
jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/invoke/AsyncTrigger.java
 Thu Jul 27 15:28:06 2006
@@ -46,7 +46,7 @@
 this.executor = executor;
 this.events = new TriggerEvent[1];
 this.events[0] = event;
-new Thread(this).run();
+new Thread(this).start();
 }
 
 /**



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



svn commit: r426295 - in /jakarta/commons/proper/scxml/trunk: RELEASE-NOTES.txt build.xml pom.xml project.xml src/conf/MANIFEST.MF

2006-07-27 Thread rahul
Author: rahul
Date: Thu Jul 27 15:37:55 2006
New Revision: 426295

URL: http://svn.apache.org/viewvc?rev=426295view=rev
Log:
Time for the Commons SCXML 0.5 release.
Vote result:
http://marc.theaimsgroup.com/?l=jakarta-commons-devm=115392663425586w=2

Modified:
jakarta/commons/proper/scxml/trunk/RELEASE-NOTES.txt
jakarta/commons/proper/scxml/trunk/build.xml
jakarta/commons/proper/scxml/trunk/pom.xml
jakarta/commons/proper/scxml/trunk/project.xml
jakarta/commons/proper/scxml/trunk/src/conf/MANIFEST.MF

Modified: jakarta/commons/proper/scxml/trunk/RELEASE-NOTES.txt
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/scxml/trunk/RELEASE-NOTES.txt?rev=426295r1=426294r2=426295view=diff
==
--- jakarta/commons/proper/scxml/trunk/RELEASE-NOTES.txt (original)
+++ jakarta/commons/proper/scxml/trunk/RELEASE-NOTES.txt Thu Jul 27 15:37:55 
2006
@@ -16,7 +16,7 @@
 $Id$
 
  Commons  SCXML Package
-   Version 0.5-RC3
+ Version 0.5
 Release Notes
 
 

Modified: jakarta/commons/proper/scxml/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/scxml/trunk/build.xml?rev=426295r1=426294r2=426295view=diff
==
--- jakarta/commons/proper/scxml/trunk/build.xml (original)
+++ jakarta/commons/proper/scxml/trunk/build.xml Thu Jul 27 15:37:55 2006
@@ -14,7 +14,7 @@
See the License for the specific language governing permissions and
limitations under the License.
 --
-!--build.xml generated by maven from project.xml version 0.5-RC3
+!--build.xml generated by maven from project.xml version 0.5
   on date July 19 2006, time 0958--
 
 project default=jar name=commons-scxml basedir=.
@@ -34,7 +34,7 @@
   /property
   property name=javadocdir value=dist/docs/api
   /property
-  property name=final.name value=commons-scxml-0.5-RC3
+  property name=final.name value=commons-scxml-0.5
   /property
   path id=build.classpath
 fileset dir=${libdir}
@@ -184,7 +184,7 @@
 /tstamp
 property name=copyright value=Copyright amp;copy;  The Apache 
Software Foundation. All Rights Reserved.
 /property
-property name=title value=Commons SCXML 0.5-RC3 API
+property name=title value=Commons SCXML 0.5 API
 /property
 javadoc use=true private=true destdir=${javadocdir} author=true 
version=true sourcepath=src/main/java 
packagenames=org.apache.commons.scxml.*
   classpath

Modified: jakarta/commons/proper/scxml/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/scxml/trunk/pom.xml?rev=426295r1=426294r2=426295view=diff
==
--- jakarta/commons/proper/scxml/trunk/pom.xml (original)
+++ jakarta/commons/proper/scxml/trunk/pom.xml Thu Jul 27 15:37:55 2006
@@ -22,7 +22,7 @@
   nameSCXML/name
   groupIdcommons-scxml/groupId
   artifactIdcommons-scxml/artifactId
-  version0.5-RC3/version
+  version0.5/version
 
   inceptionYear2005/inceptionYear
   descriptionA Java Implementation of a State Chart XML Engine/description

Modified: jakarta/commons/proper/scxml/trunk/project.xml
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/scxml/trunk/project.xml?rev=426295r1=426294r2=426295view=diff
==
--- jakarta/commons/proper/scxml/trunk/project.xml (original)
+++ jakarta/commons/proper/scxml/trunk/project.xml Thu Jul 27 15:37:55 2006
@@ -19,7 +19,7 @@
   nameSCXML/name
   groupIdcommons-scxml/groupId 
   artifactIdcommons-scxml/artifactId
-  currentVersion0.5-RC3/currentVersion
+  currentVersion0.5/currentVersion
 
   inceptionYear2005/inceptionYear
   shortDescriptionJakarta Commons SCXML/shortDescription

Modified: jakarta/commons/proper/scxml/trunk/src/conf/MANIFEST.MF
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/scxml/trunk/src/conf/MANIFEST.MF?rev=426295r1=426294r2=426295view=diff
==
--- jakarta/commons/proper/scxml/trunk/src/conf/MANIFEST.MF (original)
+++ jakarta/commons/proper/scxml/trunk/src/conf/MANIFEST.MF Thu Jul 27 15:37:55 
2006
@@ -6,7 +6,7 @@
 Specification-Vendor: The Apache Software Foundation
 Implementation-Title: org.apache.commons.scxml
 Implementation-Vendor: The Apache Software Foundation
-Implementation-Version: 0.5-RC3
+Implementation-Version: 0.5
 Implementation-Vendor-Id: org.apache
 X-Compile-Source-JDK: 1.4
 X-Compile-Target-JDK: 1.4



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



svn commit: r426299 - /jakarta/commons/proper/scxml/tags/SCXML_0_5/

2006-07-27 Thread rahul
Author: rahul
Date: Thu Jul 27 15:45:56 2006
New Revision: 426299

URL: http://svn.apache.org/viewvc?rev=426299view=rev
Log:
Tag the Commons SCXML 0.5 release sources

Added:
jakarta/commons/proper/scxml/tags/SCXML_0_5/
  - copied from r426298, jakarta/commons/proper/scxml/trunk/


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



svn commit: r426302 - in /jakarta/commons/proper/scxml/trunk: RELEASE-NOTES.txt build.xml pom.xml project.xml src/conf/MANIFEST.MF

2006-07-27 Thread rahul
Author: rahul
Date: Thu Jul 27 15:49:06 2006
New Revision: 426302

URL: http://svn.apache.org/viewvc?rev=426302view=rev
Log:
Roll to a post 0.5 version.

Modified:
jakarta/commons/proper/scxml/trunk/RELEASE-NOTES.txt
jakarta/commons/proper/scxml/trunk/build.xml
jakarta/commons/proper/scxml/trunk/pom.xml
jakarta/commons/proper/scxml/trunk/project.xml
jakarta/commons/proper/scxml/trunk/src/conf/MANIFEST.MF

Modified: jakarta/commons/proper/scxml/trunk/RELEASE-NOTES.txt
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/scxml/trunk/RELEASE-NOTES.txt?rev=426302r1=426301r2=426302view=diff
==
--- jakarta/commons/proper/scxml/trunk/RELEASE-NOTES.txt (original)
+++ jakarta/commons/proper/scxml/trunk/RELEASE-NOTES.txt Thu Jul 27 15:49:06 
2006
@@ -16,7 +16,7 @@
 $Id$
 
  Commons  SCXML Package
- Version 0.5
+ Version 0.5.1-SNAPSHOT
 Release Notes
 
 

Modified: jakarta/commons/proper/scxml/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/scxml/trunk/build.xml?rev=426302r1=426301r2=426302view=diff
==
--- jakarta/commons/proper/scxml/trunk/build.xml (original)
+++ jakarta/commons/proper/scxml/trunk/build.xml Thu Jul 27 15:49:06 2006
@@ -14,7 +14,7 @@
See the License for the specific language governing permissions and
limitations under the License.
 --
-!--build.xml generated by maven from project.xml version 0.5
+!--build.xml generated by maven from project.xml version 0.5.1-SNAPSHOT
   on date July 19 2006, time 0958--
 
 project default=jar name=commons-scxml basedir=.
@@ -34,7 +34,7 @@
   /property
   property name=javadocdir value=dist/docs/api
   /property
-  property name=final.name value=commons-scxml-0.5
+  property name=final.name value=commons-scxml-0.5.1-SNAPSHOT
   /property
   path id=build.classpath
 fileset dir=${libdir}
@@ -184,7 +184,7 @@
 /tstamp
 property name=copyright value=Copyright amp;copy;  The Apache 
Software Foundation. All Rights Reserved.
 /property
-property name=title value=Commons SCXML 0.5 API
+property name=title value=Commons SCXML 0.5.1-SNAPSHOT API
 /property
 javadoc use=true private=true destdir=${javadocdir} author=true 
version=true sourcepath=src/main/java 
packagenames=org.apache.commons.scxml.*
   classpath

Modified: jakarta/commons/proper/scxml/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/scxml/trunk/pom.xml?rev=426302r1=426301r2=426302view=diff
==
--- jakarta/commons/proper/scxml/trunk/pom.xml (original)
+++ jakarta/commons/proper/scxml/trunk/pom.xml Thu Jul 27 15:49:06 2006
@@ -22,7 +22,7 @@
   nameSCXML/name
   groupIdcommons-scxml/groupId
   artifactIdcommons-scxml/artifactId
-  version0.5/version
+  version0.5.1-SNAPSHOT/version
 
   inceptionYear2005/inceptionYear
   descriptionA Java Implementation of a State Chart XML Engine/description

Modified: jakarta/commons/proper/scxml/trunk/project.xml
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/scxml/trunk/project.xml?rev=426302r1=426301r2=426302view=diff
==
--- jakarta/commons/proper/scxml/trunk/project.xml (original)
+++ jakarta/commons/proper/scxml/trunk/project.xml Thu Jul 27 15:49:06 2006
@@ -19,7 +19,7 @@
   nameSCXML/name
   groupIdcommons-scxml/groupId 
   artifactIdcommons-scxml/artifactId
-  currentVersion0.5/currentVersion
+  currentVersion0.5.1-SNAPSHOT/currentVersion
 
   inceptionYear2005/inceptionYear
   shortDescriptionJakarta Commons SCXML/shortDescription

Modified: jakarta/commons/proper/scxml/trunk/src/conf/MANIFEST.MF
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/scxml/trunk/src/conf/MANIFEST.MF?rev=426302r1=426301r2=426302view=diff
==
--- jakarta/commons/proper/scxml/trunk/src/conf/MANIFEST.MF (original)
+++ jakarta/commons/proper/scxml/trunk/src/conf/MANIFEST.MF Thu Jul 27 15:49:06 
2006
@@ -6,7 +6,7 @@
 Specification-Vendor: The Apache Software Foundation
 Implementation-Title: org.apache.commons.scxml
 Implementation-Vendor: The Apache Software Foundation
-Implementation-Version: 0.5
+Implementation-Version: 0.5.1-SNAPSHOT
 Implementation-Vendor-Id: org.apache
 X-Compile-Source-JDK: 1.4
 X-Compile-Target-JDK: 1.4



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



Re: [vfs] split of vfs

2006-07-27 Thread Rahul Akolkar

On 7/27/06, Mario Ivankovits [EMAIL PROTECTED] wrote:

Hi!


snip/


If we split VFS in two pieces

- commons-vfs.jar
- commons-vfs-sandbox.jar

it might be manageable. The sandbox jar isn't releasable, its a sandbox
- so no additional work.


snap/


What do you think?


snip/

I supported this approach then [1], and I will support it now.

-Rahul

[1] http://marc.theaimsgroup.com/?l=jakarta-commons-devm=114166113220091w=2



Ciao,
Mario




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



svn commit: r426313 - /jakarta/commons/proper/logging/trunk/build.xml

2006-07-27 Thread skitching
Author: skitching
Date: Thu Jul 27 16:05:22 2006
New Revision: 426313

URL: http://svn.apache.org/viewvc?rev=426313view=rev
Log:
Exclude LogFactoryImpl anonymous inner classes from adapter jar that shouldn't 
be included.

Modified:
jakarta/commons/proper/logging/trunk/build.xml

Modified: jakarta/commons/proper/logging/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/logging/trunk/build.xml?rev=426313r1=426312r2=426313view=diff
==
--- jakarta/commons/proper/logging/trunk/build.xml (original)
+++ jakarta/commons/proper/logging/trunk/build.xml Thu Jul 27 16:05:22 2006
@@ -493,7 +493,7 @@
   include name=META-INF/LICENSE.txt/
   include name=META-INF/NOTICE.txt/
   exclude name=org/apache/commons/logging/impl/WeakHashtable*.class /
-  exclude name=org/apache/commons/logging/impl/LogFactoryImpl.class /
+  exclude name=org/apache/commons/logging/impl/LogFactoryImpl*.class /
 /jar
   /target
 



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



svn commit: r426316 - /jakarta/commons/proper/logging/trunk/pom.xml

2006-07-27 Thread skitching
Author: skitching
Date: Thu Jul 27 16:09:24 2006
New Revision: 426316

URL: http://svn.apache.org/viewvc?rev=426316view=rev
Log:
Rework packaging phase. JCL now builds correctly with maven2 (though unit tests 
don't run).

Modified:
jakarta/commons/proper/logging/trunk/pom.xml

Modified: jakarta/commons/proper/logging/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/logging/trunk/pom.xml?rev=426316r1=426315r2=426316view=diff
==
--- jakarta/commons/proper/logging/trunk/pom.xml (original)
+++ jakarta/commons/proper/logging/trunk/pom.xml Thu Jul 27 16:09:24 2006
@@ -3,7 +3,7 @@
   groupIdcommons-logging/groupId
   artifactIdcommons-logging/artifactId
   nameLogging/name
-  version1.1.1/version
+  version1.1.1-SNAPSHOT/version
   descriptionCommons Logging is a thin adapter allowing configurable 
bridging to other,
 well known logging systems./description
   urlhttp://jakarta.apache.org/commons/logging/url
@@ -145,55 +145,93 @@
 testSourceDirectorysrc/test/testSourceDirectory
 
 plugins
-  plugin
 !--
-  - We want to create three jarfiles here; normal, -api and -adapters.
-  - The default jar:jar target is used to create the normal one, and
-  - two additional executions are defined to build the others.
-  -
-  - The custom test framework also requires the unit test code to be
+  - The custom test framework requires the unit test code to be
   - in a jarfile so it can control its place in the classpath.
   --
+  plugin  
 artifactIdmaven-jar-plugin/artifactId
+  executions
+execution
+  idtestjar/id
+  phasepackage/phase
+  goals
+  goaltest-jar/goal
+/goals
+configuration
+  jarNamecommons-logging/jarName
+/configuration
+  /execution
+/executions
+  /plugin
+
+  plugin
+!--
+  - We want to create four jarfiles from this project: normal, tests, 
api
+  - and adapters. The first two are handled by the normal jar:jar 
target.
+  - Alas, the standard jar plugin doesn't have includes/excludes 
support
+  - in version 2.0, so antrun is used to create the other ones.
+  --
+artifactIdmaven-antrun-plugin/artifactId
 executions
   execution
 idapijar/id
 phasepackage/phase
-goals
-  goaljar/goal
-/goals
 configuration
-  jarName${project.artifactId}-api-${project.version}/jarName
-  excludes
-
excludeorg/apache/commons/logging/impl/Log4JLogger.class/exclude
-  /excludes
+  tasks
+property name=workdir 
value=${project.build.directory}/rejar/
+property name=target 
value=${project.artifactId}-api-${project.version}/
+
+delete dir=${workdir} failonerror=false/
+mkdir dir=${workdir}/
+
+unjar
+  
src=${project.build.directory}/${project.build.finalName}.jar
+  dest=${workdir}/
+jar
+  basedir=${workdir}
+  destfile=${project.build.directory}/${target}.jar
+  exclude name=org/apache/commons/logging/impl/Log4J*/
+  exclude name=org/apache/commons/logging/impl/Avalon*/
+  exclude name=org/apache/commons/logging/impl/Jdk13*/
+  exclude name=org/apache/commons/logging/impl/LogKit*/
+  exclude name=org/apache/commons/logging/impl/Servlet*/
+/jar
+  /tasks
 /configuration
+goals
+  goalrun/goal
+/goals
   /execution
   execution
 idadaptersjar/id
 phasepackage/phase
 configuration
-  
jarName${project.artifactId}-adapters-${project.version}/jarName
-  excludes
-excludeorg/apache/commons/logging/Log.class/exclude
-excludeorg/apache/commons/logging/LogFactory.class/exclude
-
excludeorg/apache/commons/logging/impl/LogFactoryImpl.class/exclude
-
excludeorg/apache/commons/logging/impl/WeakHashtable.class/exclude
-  /excludes
+  tasks
+property name=workdir 
value=${project.build.directory}/rejar/
+property name=target 
value=${project.artifactId}-adapters-${project.version}/
+
+delete dir=${workdir} failonerror=false/
+mkdir dir=${workdir}/
+
+unjar
+  
src=${project.build.directory}/${project.build.finalName}.jar
+  dest=${workdir}/
+jar
+  basedir=${workdir}
+  

Re: svn commit: r425929 - in /jakarta/commons/sandbox/js2j/trunk: maven.xml pom.xml project.properties project.xml src/ src/main/ src/main/java/ src/main/java/org/

2006-07-27 Thread Rahul Akolkar

On 7/27/06, Don Brown [EMAIL PROTECTED] wrote:

I suppose so, however, I stole that pom from scxml, so perhaps that
one should be fixed too.


snip/

There are two reasons why you still see the old-school groupId in [scxml]:

* Relocation of existing Commons artifacts to use the new groupId
will probably need more time (there were some experiments, but nothing
conclusive, AFAIK)

* The relocation should happen with all of Commons as a whole, rather
than, say [scxml] starting off with a separate groupId than the rest
of the Commons' released artifacts.

-Rahul



Don

On 7/26/06, Wendy Smoak [EMAIL PROTECTED] wrote:
 Should the groupId be org.apache.commons instead?

 --
 Wendy


snap/

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



[vfs] Minimal first release

2006-07-27 Thread Stephen Colebourne

Simple question - can [vfs] be released *now*, with a minimal set of code?

I presume that the first release might thus consist only of the core 
plus standard java File and ram? No compress, ftp, http, ... I 
emphasise, think small.



Subsequent releases could then add these features in, and potentially 
provide the split jar files (if someone, eg a maven expert, wants to set 
up the multi jar solution)


Stephen

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



Re: [vfs] Minimal first release

2006-07-27 Thread Filip Defoort

This is just my 0.02$ as a VFS user: I don't think such a minimal release is
very useful as the primary reason for using VFS is for using it for more 
than

just a local FS. I think the suggest vfs/vfs-sandbox would work really well.

Cheers,
- Filip

Stephen Colebourne wrote:
Simple question - can [vfs] be released *now*, with a minimal set of 
code?


I presume that the first release might thus consist only of the core 
plus standard java File and ram? No compress, ftp, http, ... I 
emphasise, think small.



Subsequent releases could then add these features in, and potentially 
provide the split jar files (if someone, eg a maven expert, wants to 
set up the multi jar solution)


Stephen

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



Re: [vfs] Minimal first release

2006-07-27 Thread Rahul Akolkar

On 7/27/06, Stephen Colebourne [EMAIL PROTECTED] wrote:

Simple question - can [vfs] be released *now*, with a minimal set of code?

I presume that the first release might thus consist only of the core
plus standard java File and ram? No compress, ftp, http, ... I
emphasise, think small.


Subsequent releases could then add these features in, and potentially
provide the split jar files (if someone, eg a maven expert, wants to set
up the multi jar solution)


snip/

I believe the answer is yes, per Mario's proposal [1]. Looks good to me.

-Rahul

[1] http://marc.theaimsgroup.com/?l=jakarta-commons-devm=115399747722213w=2



Stephen



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



Re: [vfs] Minimal first release

2006-07-27 Thread Simon Kitching
On Fri, 2006-07-28 at 00:12 +0100, Stephen Colebourne wrote:
 Simple question - can [vfs] be released *now*, with a minimal set of code?
 
 I presume that the first release might thus consist only of the core 
 plus standard java File and ram? No compress, ftp, http, ... I 
 emphasise, think small.
 
 
 Subsequent releases could then add these features in, and potentially 
 provide the split jar files (if someone, eg a maven expert, wants to set 
 up the multi jar solution)

I've done a reasonable amount of work with maven2 now, and can probably
help out with maven config for vfs. However I agree that a minimal first
release is a good idea.

BTW, I generally like maven2. For certain special projects (eg
logging) it can be awkward but for most projects the rewards are well
worth the learning curve.

Regards,

Simon



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



[io] Regexp filter - help wanted

2006-07-27 Thread Stephen Colebourne
The regexp file filter has been excluded from [io] releases as [io] is 
JDK 1.2 compliant, see http://issues.apache.org/jira/browse/IO-74.


It would however be possible to use reflection to access the JDKs regexp 
facility. Is there anyone, perhaps who is looking to contribute to 
commons for the first time, who would be interested in seeing if this 
approach is viable, and what performance penalty it carries?


Obviously the reflection solution involves using Strings to find if the 
java.util.regex.Pattern exists, and then using reflection to call its 
methods.


Note that there is an alternative of using ORO, but I believe we should 
stick with the 'no dependencies' rule for [io] (even one that would be 
optional). And we should at least examine the releaction option.


Stephen

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



Re: [vfs] Minimal first release

2006-07-27 Thread Torsten Curdt

Subsequent releases could then add these features in, and potentially
provide the split jar files (if someone, eg a maven expert, wants to set
up the multi jar solution)


With jci we already have multi module project in the sandbox. So that
might help with the setup.

cheers
--
Torsten

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



Re: [io] Regexp filter - help wanted

2006-07-27 Thread Torsten Curdt

The regexp file filter has been excluded from [io] releases as [io] is
JDK 1.2 compliant, see http://issues.apache.org/jira/browse/IO-74.

It would however be possible to use reflection to access the JDKs regexp
facility. Is there anyone, perhaps who is looking to contribute to
commons for the first time, who would be interested in seeing if this
approach is viable, and what performance penalty it carries?

Obviously the reflection solution involves using Strings to find if the
java.util.regex.Pattern exists, and then using reflection to call its
methods.


Actually this raises a different question IMO:
How much real world is 1.2 compliance anymore?

IMO we should raise the bar - for other components as well.

cheers
--
Torsten

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



Re: JXPath, beans and the count function

2006-07-27 Thread Dmitri Plotnikov

Simone,

Perhaps a custom extension function could be used instead of count(list) 
to resolve the issue.


- Dmitri

- Original Message - 
From: Simone Gianni [EMAIL PROTECTED]

To: commons-dev@jakarta.apache.org
Sent: Thursday, July 27, 2006 1:47 PM
Subject: JXPath, beans and the count function



Hi there,
we are developing paginated repeater for Cocoon. The cocoon repeaters
uses JXPath in their binding so that they can work on beans and XML
documents.

The goal for us is to display a very long list of elements from a
collection not fetching the entire content of the collection. This is
expecially useful when the collection is backed by a persistence layer
like hibernate or similar, and you have a very big rowset (we are
testing on an application with a list with 11000 elements in it).

Now, one key element for every pagination system is to retrieve the
total amount of items in the list. We tried to accomplish this with a
count(pathToList). Actually we have a bean having a getList method
returning a java.util.List instance, so we try count(list/*) ,
count(list), count(list/something), and we would expect JXPath to call
getList().size(). This is quite critical, because the list
implementation knows how to retrieve the number of rows without actually
fetching all the rows from the underlying dataset.

Unfortunately, what hapens is different. The
CoreFunction.functionCount() method does not recognize it as a
Collection, but as a EvalContext instead, and iterates on all the lines
to count the items (actually is the EvalContext.hasNext() method that
iterates on the entire collection).

What's strange is that there is a check in CoreFunction.functionCount()
to see if a Collection is in place and eventually call the
Collection.size() method, but this seems like it's never happening.

Could you please help us? Is it a JXPath bug or are we completely
missing something?

TIA, regards,
Simone Gianni,
Matthias Epheser

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



Re: [VFS] Snapshot timestamped version has disappeared from the m1 snapshot repo!

2006-07-27 Thread Phil Steitz

Sorry, I have been on the road and pegged this week.  I thought about
rigging a symlink to the latest dated snap named -SNAPSHOT.  I could
do this if people would prefer.  I could also modify the script to
just overwrite the snap each night - but I thought the consensus was
we wanted dated snaps.

I will add the -SNAPSHOT symlinks this weekend if there are no
objections or better ideas.  Of course, anyone else is welcome to make
the change to the script in svn.

Phil

On 7/26/06, Mario Ivankovits [EMAIL PROTECTED] wrote:

Hi Wendy!

 Changing the build to publish both -MMDD.jar and -SNAPSHOT.jar
 might help, then the latest code would always be available at a fixed
 filename.
I think this is a great idea.
Users in the past already asked to have this thing.

@phil: What do you think, can we have this?
Or is it a bad idea to do this for all projects by default?
I can setup my own cronjob to create the link then.


Ciao,
Mario


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



[jira] Commented: (SANDBOX-153) Delimiter should be never recognized as whitespace

2006-07-27 Thread Markus Rogg (JIRA)
[ 
http://issues.apache.org/jira/browse/SANDBOX-153?page=comments#action_12424003 
] 

Markus Rogg commented on SANDBOX-153:
-

Delimiter is whitespace JUnit test (CSVParserTest)

   public void testDelimiterIsWhitespace() throws IOException {
   String code = one\ttwo\t\tfour \t five\t  six;
   TestCSVParser parser = new TestCSVParser(new StringReader(code));
   parser.setStrategy(CSVStrategy.TDF_STRATEGY);
   System.out.println(-\n + code + \n-);
   assertEquals(CSVParser.TT_TOKEN + ;one;, parser.testNextToken());
   assertEquals(CSVParser.TT_TOKEN + ;two;, parser.testNextToken());
   assertEquals(CSVParser.TT_TOKEN + ;;, parser.testNextToken());
   assertEquals(CSVParser.TT_TOKEN + ;four;, parser.testNextToken());
   assertEquals(CSVParser.TT_TOKEN + ;five;, parser.testNextToken());
   assertEquals(CSVParser.TT_EOF + ;six;, parser.testNextToken());
}

 Delimiter should be never recognized as whitespace
 --

 Key: SANDBOX-153
 URL: http://issues.apache.org/jira/browse/SANDBOX-153
 Project: Commons Sandbox
  Issue Type: Bug
  Components: CSV
Reporter: Markus Rogg

 The CSV-Parser ignores whitespaces at the beginning of a token. If the 
 delimiter is a tabspace and data has no encapsulator the parser loses the 
 empty tokens. The parser should never recognize a delimiter as a whitespace. 
 A possible solution for the class CSVParser is to change the method 
 isWhitespace(int) :
   private boolean isWhitespace(int c) {
 return Character.isWhitespace((char) c)  (c != strategy.getDelimiter());
   }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



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