DO NOT REPLY [Bug 21042] - Setting XSL parameter to input filename when processed whole directory.

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=21042





--- Additional Comments From [EMAIL PROTECTED]  2006-07-28 19:29 ---
Jan, have you looked at my patch?

The following:

if (fileDirParameter != null) {
String fileName = FileUtils.getRelativePath(baseDir, inFile);

int lastDirSep = fileName.lastIndexOf("/");

// so a dir+"/"+name would not result in an absolute path
String dir  = (-1 == lastDirSep ) ? "." : fileName.substring(0,
lastDirSep);

liaison.addParam(fileDirParameter, dir);
}

seems cheaper CPU-cycle wise than involving filesystem actions as in:

if (fileDirParameter != null) {
String fileName = FileUtils.getRelativePath(baseDir, inFile);
File file = new File(fileName);
// Give always a slash as file separator, so the stylesheet could be
sure about that
// Use '.' so a dir+"/"+name would not result in an absolute path
liaison.addParam(fileDirParameter, (file.getParent()!=null) ?
file.getParent().replace('\\','/') : "." );
}



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

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



Re: svn commit: r426648 - /ant/core/trunk/src/main/org/apache/tools/ant/types/PropertySet.java

2006-07-28 Thread Stefan Bodewig
On Fri, 28 Jul 2006, <[EMAIL PROTECTED]> wrote:

> avoid NPE in border-cases

  

  

would cause an NPE while trying to add the key
java.net.useSystemProxies.  The problem is that this system property
gets set after we've transfered the system properties to project
properties and thus project.getProperty("java.net.useSystemProxies")
returns null.

Stefan

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



svn commit: r426650 - in /ant/antlibs/antunit/trunk: docs/antunit.html src/etc/testcases/antunit.xml src/etc/testcases/antunit/echo.xml src/main/org/apache/ant/antunit/AntUnit.java

2006-07-28 Thread bodewig
Author: bodewig
Date: Fri Jul 28 12:16:29 2006
New Revision: 426650

URL: http://svn.apache.org/viewvc?rev=426650&view=rev
Log:
 support for 

Added:
ant/antlibs/antunit/trunk/src/etc/testcases/antunit/echo.xml   (with props)
Modified:
ant/antlibs/antunit/trunk/docs/antunit.html
ant/antlibs/antunit/trunk/src/etc/testcases/antunit.xml
ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/AntUnit.java

Modified: ant/antlibs/antunit/trunk/docs/antunit.html
URL: 
http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/docs/antunit.html?rev=426650&r1=426649&r2=426650&view=diff
==
--- ant/antlibs/antunit/trunk/docs/antunit.html (original)
+++ ant/antlibs/antunit/trunk/docs/antunit.html Fri Jul 28 12:16:29 2006
@@ -131,6 +131,12 @@
  this one creates reports similar to the
 "plain"  of the  task.
 
+propertyset
+
+http://ant.apache.org/manual/CoreTypes/propertyset.html";>s
+can be used to pass properties to the build files under test.
+
 Examples
 
 This build file snippet (from src/etc/testcases/antunit/base.xml)

Modified: ant/antlibs/antunit/trunk/src/etc/testcases/antunit.xml
URL: 
http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/src/etc/testcases/antunit.xml?rev=426650&r1=426649&r2=426650&view=diff
==
--- ant/antlibs/antunit/trunk/src/etc/testcases/antunit.xml (original)
+++ ant/antlibs/antunit/trunk/src/etc/testcases/antunit.xml Fri Jul 28 12:16:29 
2006
@@ -50,6 +50,23 @@
 
   
 
+  
+
+  
+  
+
+  
+
+  
+
+  
+  
+  
+
+  
+
+  
+
   
 
   

Added: ant/antlibs/antunit/trunk/src/etc/testcases/antunit/echo.xml
URL: 
http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/src/etc/testcases/antunit/echo.xml?rev=426650&view=auto
==
--- ant/antlibs/antunit/trunk/src/etc/testcases/antunit/echo.xml (added)
+++ ant/antlibs/antunit/trunk/src/etc/testcases/antunit/echo.xml Fri Jul 28 
12:16:29 2006
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+  
+Not a self-contained build file
+  
+
+  
+${java.class.path}
+
+  
+
\ No newline at end of file

Propchange: ant/antlibs/antunit/trunk/src/etc/testcases/antunit/echo.xml
--
svn:eol-style = native

Modified: ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/AntUnit.java
URL: 
http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/AntUnit.java?rev=426650&r1=426649&r2=426650&view=diff
==
--- ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/AntUnit.java 
(original)
+++ ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/AntUnit.java Fri 
Jul 28 12:16:29 2006
@@ -30,14 +30,16 @@
 import org.apache.tools.ant.BuildEvent;
 import org.apache.tools.ant.BuildException;
 import org.apache.tools.ant.BuildListener;
+import org.apache.tools.ant.MagicNames;
 import org.apache.tools.ant.Project;
 import org.apache.tools.ant.ProjectHelper;
 import org.apache.tools.ant.Target;
 import org.apache.tools.ant.Task;
 import org.apache.tools.ant.taskdefs.LogOutputStream;
+import org.apache.tools.ant.types.PropertySet;
 import org.apache.tools.ant.types.ResourceCollection;
-import org.apache.tools.ant.types.resources.Union;
 import org.apache.tools.ant.types.resources.FileResource;
+import org.apache.tools.ant.types.resources.Union;
 
 /**
  * Run all targets in a given build file who's name starts with "test".
@@ -79,6 +81,11 @@
 private ArrayList listeners = new ArrayList();
 
 /**
+ * propertysets.
+ */
+private ArrayList propertySets = new ArrayList();
+
+/**
  * has a failure occured?
  */
 private int failures=0;
@@ -123,6 +130,13 @@
 }
 
 /**
+ * Adds a PropertySet.
+ */
+public void addPropertySet(PropertySet ps) {
+propertySets.add(ps);
+}
+
+/**
  * stop testing if an error or failure occurs?
  */
 public void setFailOnError(boolean failOnError) {
@@ -169,13 +183,7 @@
 log("Running tests in build file " + f, Project.MSG_DEBUG);
 
 // setup project instance
-newProject = new Project();
-newProject.setDefaultInputStream(getProject().getDefaultInputStream());
-newProject.setJavaVersionProperty();
-newProject.setInputHandler(getProject().getInputHandler());
-getProject().initSubProject(newProject);
-newProject.setUserProperty("ant.file" , f.getAbsolutePath());
-attachListeners(f, newProject);
+newProject = createProjectForFile(f);
 
 // read build file
 ProjectHelper.configureProject(newProject, f);
@@ -292,6 +300,38 @@
 }

svn commit: r426649 - /ant/core/trunk/src/main/org/apache/tools/ant/types/PropertySet.java

2006-07-28 Thread bodewig
Author: bodewig
Date: Fri Jul 28 12:14:57 2006
New Revision: 426649

URL: http://svn.apache.org/viewvc?rev=426649&view=rev
Log:
whitespace only

Modified:
ant/core/trunk/src/main/org/apache/tools/ant/types/PropertySet.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/PropertySet.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/PropertySet.java?rev=426649&r1=426648&r2=426649&view=diff
==
--- ant/core/trunk/src/main/org/apache/tools/ant/types/PropertySet.java 
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/PropertySet.java Fri Jul 
28 12:14:57 2006
@@ -323,14 +323,14 @@
 if (value != null) {
 // may be null if a system property has been added
 // after the project instance has been initialized
-if (m != null) {
-//map the names
-String[] newname = m.mapFileName(name);
-if (newname != null) {
-name = newname[0];
+if (m != null) {
+//map the names
+String[] newname = m.mapFileName(name);
+if (newname != null) {
+name = newname[0];
+}
 }
-}
-properties.setProperty(name, value);
+properties.setProperty(name, value);
 }
 }
 return properties;



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



svn commit: r426648 - /ant/core/trunk/src/main/org/apache/tools/ant/types/PropertySet.java

2006-07-28 Thread bodewig
Author: bodewig
Date: Fri Jul 28 12:10:22 2006
New Revision: 426648

URL: http://svn.apache.org/viewvc?rev=426648&view=rev
Log:
avoid NPE in border-cases

Modified:
ant/core/trunk/src/main/org/apache/tools/ant/types/PropertySet.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/PropertySet.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/PropertySet.java?rev=426648&r1=426647&r2=426648&view=diff
==
--- ant/core/trunk/src/main/org/apache/tools/ant/types/PropertySet.java 
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/PropertySet.java Fri Jul 
28 12:10:22 2006
@@ -320,6 +320,9 @@
 for (Iterator iter = names.iterator(); iter.hasNext();) {
 String name = (String) iter.next();
 String value = (String) props.get(name);
+if (value != null) {
+// may be null if a system property has been added
+// after the project instance has been initialized
 if (m != null) {
 //map the names
 String[] newname = m.mapFileName(name);
@@ -328,6 +331,7 @@
 }
 }
 properties.setProperty(name, value);
+}
 }
 return properties;
 }



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



DO NOT REPLY [Bug 37099] - junit fails with xmlformatter and forkmode perbatch/once (but not pertest)

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=37099





--- Additional Comments From [EMAIL PROTECTED]  2006-07-28 14:16 ---
Check if you have an older version of ant hiding earlier on the classpath. This
tiggered the same problem for me - in my case it was weblogic.jar which
indirectly contained an old ant.

Older versions of the junit test runner don't know that a first argument
starting with 'testsfile=' mean 'multi-file' mode.

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

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



Re: 1.7 alpha [get-m2.xml FIXED]

2006-07-28 Thread Matt Benson
--- Stefan Bodewig <[EMAIL PROTECTED]> wrote:

> On Fri, 28 Jul 2006, Kev Jackson
> <[EMAIL PROTECTED]> wrote:
> 
> > Also need someone willing to test ManifestTest on
> Windows/Linux
> 
> vmgump runs Debian Linux and Sun's Java 5 and the
> test passed before
> you committed your change to the testcase.  I don't
> think it has been
> built against the patched version yet.
> 
> Test passes on my Suse installation.  Before and
> after your patch.

(Actually it was my patch, and) I am stumped as to how
the test could pass without it.  I assume Martijn is
currently inaccessible or he would have enlightened us
all by now.  :)

-Matt

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


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

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



Re: 1.7 alpha [get-m2.xml FIXED]

2006-07-28 Thread Matt Benson
--- Kev Jackson <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> The build.xml file wasn't updated to copy the
> get-m2.xml file over to  
> the dist directory - I've updated the build.xml
> file, committed it  
> and run a quick test here, so once again the 1.7
> alpha release is  
> ready for you to all have a once-over
> 
> http://people.apache.org/~kevj
> 
> If anyone notices anything else missing from the
> distribution, let me  
> know and I'll look into it - Thanks to Matt for
> spotting the missing  
> file so quickly - have a gold star and a pat on the
> back :)

Except that it wouldn't have been a problem had I
known to make the build.xml change you made... ;)

-Matt


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

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



DO NOT REPLY [Bug 40093] - ant.PropertyHelper reference not passed to called build

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=40093


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #18640|0   |1
is obsolete||
  Attachment #18641|0   |1
is obsolete||




--- Additional Comments From [EMAIL PROTECTED]  2006-07-28 13:15 ---
Created an attachment (id=18659)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18659&action=view)
Patches of sources, tests and docu, plus new files

PropertyHelper patches.
 
Why (the problem): 
  even though it is possible for a custom task to install a 
  new property helper as a hook or even as the main property helper, 
  at present there is no way to pass the helper to subbuilds. 
  The additional data in the PropertyHelper subclass and the hooks 
  are not inherited. 
Proposed solution:
  this patch extends the PropertyHelper interface to install
  and clone PropertyHelper instances in a way suitable to Ant.

** Sources **
PropertyHelper.java:
 - installPropertyHelper(project, newHelper) 
  to install a custom PropertyHelper into a project 
 - clonePropertyHelper(fromProject, newProject, inheritAll)
  to clone a PropertyHelper to a new project and optionally
  copy hooks' properties to their clones
 - areYouOverridableBy(newHelper) method that let's the main 
  property helper decide whether it wants to give up control 
  of the build's property handling to a new helper.

Ant.java, CallTarget.java, SubAnt.java: 
 - new "inheritph" attribute telling whether the property helper
   and its hooks should be cloned to the new project

** Tests **
PropertyHelperTest.java:
 - created new test case, testing installation of property helpers
   and hooks into a project

AntTest.java, CallTargetTest.java:
 - extended to test cloning of property helper and its hooks

** Docu **
Ant.html, AntCall.html, SubAnt.html:
 - added "inheritph" attribute with a small comment

** Note **
Modified and patched against latest 1.70alpha.
The proposed changes should be backward compatible.


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

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



DO NOT REPLY [Bug 21042] - Setting XSL parameter to input filename when processed whole directory.

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=21042


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2006-07-28 13:12 ---
back to File-based computation, but with an additional replacement
  liaison.addParam(
fileDirParameter, 
(file.getParent()!=null) ? file.getParent().replace('\\','/') 
 : "." );


statements only in if-clauses.

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

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



AW: svn commit: r423009 - in /ant/core/trunk: docs/manual/CoreTasks/style.html src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java src/testcases/org/apache/tools/ant/taskdefs/StyleTest.java

2006-07-28 Thread Jan.Materne
>FWIW, I prefered the File.getParent()/getName() version. I 
>believe the statement that getParent would use \ as filesep to 
>find the parent to be incorrect. getParent is both more 
>explicit and shorter. But maybe I'm missing something about 
>getParent()? Thanks, --DD

Yes, I prefered the File-based stuff too. I had misunderstood the last
statements on Bugzilla.
I changed to File.getParent().replace('\\','/') - all tests passed.


Jan

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



svn commit: r426494 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java

2006-07-28 Thread jhm
Author: jhm
Date: Fri Jul 28 06:11:43 2006
New Revision: 426494

URL: http://svn.apache.org/viewvc?rev=426494&view=rev
Log:
- back to File-based algorithm
- cpu enhancement

Modified:
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java?rev=426494&r1=426493&r2=426494&view=diff
==
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java 
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java Fri 
Jul 28 06:11:43 2006
@@ -1036,24 +1036,15 @@
 XSLTLiaison liaison,
 File inFile
 ) throws Exception {
-String fileName = FileUtils.getRelativePath(baseDir, inFile);
-
-String name;
-String dir;
-int lastDirSep = fileName.lastIndexOf("/");
-if (lastDirSep > -1) {
-name = fileName.substring(lastDirSep + 1);
-dir  = fileName.substring(0, lastDirSep);
-} else {
-name = fileName;
-dir  = ".";  // so a dir+"/"+name would not result in an 
absolute path
-}
-
 if (fileNameParameter != null) {
-liaison.addParam(fileNameParameter, name);
+liaison.addParam(fileNameParameter, inFile.getName());
 }
 if (fileDirParameter != null) {
-liaison.addParam(fileDirParameter, dir);
+String fileName = FileUtils.getRelativePath(baseDir, inFile);
+File file = new File(fileName);
+// Give always a slash as file separator, so the stylesheet could 
be sure about that
+// Use '.' so a dir+"/"+name would not result in an absolute path
+liaison.addParam(fileDirParameter, (file.getParent()!=null) ? 
file.getParent().replace('\\','/') : "." );
 }
 }
 



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



DO NOT REPLY [Bug 28621] - [patch] Enhancement of InputRequest class

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=28621


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |1.7




--- Additional Comments From [EMAIL PROTECTED]  2006-07-28 11:39 ---
Yes, sorry, I forgot this was filed. Inspired by NetBeans bug

http://www.netbeans.org/nonav/issues/show_bug.cgi?id=81139

though in fact that was solvable without changes in Ant (due to NB's preexisting
ability to inspect single task executions). Using InputRequest.getDefaultValue
would however be cleaner and more reliable, and other environments such as IDEs
could make use of it - in fact I extended the default input handler to use it so
that the prompt is nicer.

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

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



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

2006-07-28 Thread jglick
Author: jglick
Date: Fri Jul 28 04:41:14 2006
New Revision: 426481

URL: http://svn.apache.org/viewvc?rev=426481&view=rev
Log:
More info re. #28621.

Modified:
ant/core/trunk/WHATSNEW

Modified: ant/core/trunk/WHATSNEW
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/WHATSNEW?rev=426481&r1=426480&r2=426481&view=diff
==
--- ant/core/trunk/WHATSNEW (original)
+++ ant/core/trunk/WHATSNEW Fri Jul 28 04:41:14 2006
@@ -258,7 +258,7 @@
 --
 
 * InputHandler implementations may now call InputRequest.getDefaultValue()
-  if they wish.
+  if they wish. The default handler uses this also. Bugzilla report 28621.
 
 * Took in bugzilla report 39320.
 



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



svn commit: r426479 - in /ant/core/trunk: CONTRIBUTORS contributors.xml docs/manual/CoreTasks/war.html

2006-07-28 Thread jhm
Author: jhm
Date: Fri Jul 28 04:21:47 2006
New Revision: 426479

URL: http://svn.apache.org/viewvc?rev=426479&view=rev
Log:
Update the note about Winzip and WEB-INF directory.

Modified:
ant/core/trunk/CONTRIBUTORS
ant/core/trunk/contributors.xml
ant/core/trunk/docs/manual/CoreTasks/war.html

Modified: ant/core/trunk/CONTRIBUTORS
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/CONTRIBUTORS?rev=426479&r1=426478&r2=426479&view=diff
==
Binary files - no diff available.

Modified: ant/core/trunk/contributors.xml
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/contributors.xml?rev=426479&r1=426478&r2=426479&view=diff
==
--- ant/core/trunk/contributors.xml (original)
+++ ant/core/trunk/contributors.xml Fri Jul 28 04:21:47 2006
@@ -902,6 +902,10 @@
 Okamoto
   
   
+Tariq
+Master
+  
+  
 Thomas
 Butz
   

Modified: ant/core/trunk/docs/manual/CoreTasks/war.html
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/CoreTasks/war.html?rev=426479&r1=426478&r2=426479&view=diff
==
--- ant/core/trunk/docs/manual/CoreTasks/war.html (original)
+++ ant/core/trunk/docs/manual/CoreTasks/war.html Fri Jul 28 04:21:47 2006
@@ -14,7 +14,7 @@
 treatment for files that should end up in the
 WEB-INF/lib, WEB-INF/classes or
 WEB-INF directories of the Web Application Archive.
-(The War task is a shortcut for specifying the particular layout of a WAR 
file. 
+(The War task is a shortcut for specifying the particular layout of a WAR 
file.
 The same thing can be accomplished by using the prefix and 
fullpath
 attributes of zipfilesets in a Zip or Jar task.)
 The extended zipfileset element from the zip task (with attributes 
prefix, fullpath, and src) is available in the War 
task.
@@ -41,7 +41,7 @@
 warfile
 Deprecated name of the file to create
 -use destfile instead.
-
+  
   
 webxml
 The deployment descriptor to use (WEB-INF/web.xml).
@@ -192,7 +192,7 @@
 
   
   
-  
 
 
@@ -211,17 +211,19 @@
 WEB-INF/web.xml is identical to
 src/metadata/myapp.xml.
 
-We regulary receive bug reports that this task is creating the WEB-INF
+We regulary receive bug reports that this task is creating the WEB-INF
 directory, and thus it is our fault your webapp doesn't work. The cause
 of these complaints lies in WinZip, which turns an all upper-case
 directory into an all lower case one in a fit of helpfulness. Please check that
 jar xvf yourwebapp.war shows the same behaviour before filing another
-report. 
+report.
+Winzip has an option allowing all uppercase names (which is off by default!).  
It can be enabled by:
+Menu "Options" -> "Configuration",  "View" property/tab page, then "General" 
group box has an option called "Allow all uppercase file names".
+
 
 
-Copyright © 2000-2005 The Apache Software Foundation. 
All rights
+Copyright © 2000-2006 The Apache Software Foundation. 
All rights
 Reserved.
 
 
 
-



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



Re: Ant 1.7 alpha available for testing...

2006-07-28 Thread jfuller

Steve Loughran wrote:

jfuller wrote:





Looks good during my first checks.




looks good on OSX 10.4.6, will be testing this release on a 'serious' 
build server farm over the weekend (rhe4).



how many servers constitutes serious?


the system consists of 6 servers, in pairs of 2 (dev/critical 
towers)...allows client (and me) to deploy new build software (like ant) 
easily without taking down critical build servers.


These server pairs each cater to different groups and roles in build 
process which spans the globe;


Development build server pair: Is responsible for catering to a group of 
40+ developers worldwide, e.g. builds the software and deploys to the 
same box they determine via svn branch/tag


Test/Integration build server pair: Is where we have to test integration 
with some other systems (mainframe db and some websphere specific stuff 
that is too much of a burden on dev build server)..in addition run 
functional and


Deployment build server: selects tagged versions for build, final 
processing with respect to security thingies and handover to deployment 
system...which then deploy to a test farm...which in turn is where the 
app itself is hit at speed and scale.


I doubled up in kit, because we had the resourcesand I like to keep 
things simple when working at such scale...cfengine helps out with 
keeping everything in sync.


its serious for me! Any other build infrastructure stories welcome.

I have been testing current head of Ant for some time on dev servers; 
though wont be pushing out to critical servers for some time yet.


cheers, Jim
---
FlameDigital Limited | Webcomposite s.r.o.
Technical Director
Co-Author WROX Pro PHP4 XML, WROX Pro PHP Web Services
Co-Creator EXSLT http://www.exslt.org
Technical Reviewer WROX Beginning Databases, Beginning XSLT, XML
Handbook, Extreme XML 2004,2005,2006
XML Prague 2005/2006 http://www.xmlprague.cz
---

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



DO NOT REPLY [Bug 40129] - Wrong path calculation in when basedir set from command line

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=40129





--- Additional Comments From [EMAIL PROTECTED]  2006-07-28 10:40 ---
Interesting. I thought maybe it was from using property value and not property
location bindings, but changing that shows the same problem


  
  

  



  

  

  

  

  

  

  

  


C:\Java\Apache\Ant\incoming\updir-test>ant -Dbasedir=build/node
Buildfile: build.xml

print:
 [echo] basedir:  build/node
 [echo] super-super-fail: C:\Java\Apache\Ant\incoming\updir-test\build\node\
res
 [echo] super-super-ok:   C:\Java\Apache\Ant\incoming\updir-test\res

ok:

bug:

BUILD FAILED
C:\Java\Apache\Ant\incoming\updir-test\build.xml:12: C:\Java\Apache\Ant\incoming
\updir-test\build\node\res not found.

Total time: 0 seconds

That is, 

is resolving (incorrectly) to 
C:\Java\Apache\Ant\incoming\updir-test\build\node\res

thoughts, anyone?

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

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



Re: Ant 1.7 alpha available for testing...

2006-07-28 Thread Steve Loughran

jfuller wrote:




Looks good during my first checks.



looks good on OSX 10.4.6, will be testing this release on a 'serious' 
build server farm over the weekend (rhe4).


how many servers constitutes serious?



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



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

2006-07-28 Thread Gump Integration Build
To whom it may engage...

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

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


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

That said, some information snippets are provided here.

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



The following work was performed:
http://vmgump.apache.org/gump/public/ant-antlibs/svn-antlib-test/gump_work/build_ant-antlibs_svn-antlib-test.html
Work Name: build_ant-antlibs_svn-antlib-test (Type: Build)
Work ended in a state of : Failed
Elapsed: 2 mins 28 secs
Command Line: java -Djava.awt.headless=true 
-Xbootclasspath/p:/usr/local/gump/public/workspace/xml-xerces2/build/xercesImpl.jar:/usr/local/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar
 org.apache.tools.ant.Main -Dgump.merge=/x1/gump/public/gump/work/merge.xml 
-Dbuild.sysclasspath=only 
-Dant-testutil.jar=/usr/local/gump/public/workspace/ant/build/lib/ant-testutil.jar
 test 
[Working Directory: /usr/local/gump/public/workspace/ant-antlibs/svn]
CLASSPATH: 
/opt/jdk1.5/lib/tools.jar:/usr/local/gump/public/workspace/ant-antlibs/svn/build/test-classes:/usr/local/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-swing.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-trax.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-junit.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-nodeps.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-testutil.jar:/usr/local/gump/public/workspace/dist/junit/junit.jar:/usr/local/gump/public/workspace/ant-antlibs/svn/build/ant-svn-28072006.jar
-
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at junit.framework.TestCase.runTest(TestCase.java:164)
[junit] at junit.framework.TestCase.runBare(TestCase.java:130)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:110)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:128)
[junit] at junit.framework.TestResult.run(TestResult.java:113)
[junit] at junit.framework.TestCase.run(TestCase.java:120)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:228)
[junit] at junit.framework.TestSuite.run(TestSuite.java:223)
[junit] at 
org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
[junit] at 
junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:32)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:361)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:809)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:648)

[junit] Testcase: testDiffWithImplicitTrunk took 41.846 sec
[junit] FAILED
[junit] null
[junit] junit.framework.AssertionFailedError: null
[junit] at junit.framework.Assert.fail(Assert.java:47)
[junit] at junit.framework.Assert.assertTrue(Assert.java:20)
[junit] at junit.framework.Assert.assertTrue(Assert.java:27)
[junit] at 
org.apache.ant.svn.SvnTagDiffTest.assertModified(SvnTagDiffTest.java:109)
[junit] at 
org.apache.ant.svn.SvnTagDiffTest.assertDiffWithTrunk(SvnTagDiffTest.java:62)
[junit] at 
org.apache.ant.svn.SvnTagDiffTest.testDiffWithImplicitTrunk(SvnTagDiffTest.java:56)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at junit.framework.TestCase.runTest(TestCase.java:164)
[junit] at junit.framework.TestCase.runBare(TestCase.java:130)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:110)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:128)
[jun

Re: AW: ApacheCon Asia slides preview

2006-07-28 Thread Kev Jackson


* slide "Extending Ant - Custom Tasks" has too many s (9) for  
that size


* slide "Extending Ant - Antlibs" - "automatically loaded by Ant at  
startup"
  When did we introduced that feature? The jar will be on the  
classpath, but AFAIK

  you have to declare it in your buildfile (xmlns, taskdef...)


Ok, good point, that's what I meant, but expressed very badly - have  
to update the slide



* slide "Antlibs - Making a tla" (graphic)
  HTML error:  from the graphic not closed (missing right bracket)


Ta - will fix


* slide "Antlibs - Making a tla" (code)
  second code line is too long (on my machine ;-) - "nu" instead of  
"null);"


Yay widescreen laptops ;)  - I'll be presenting from my machine, so  
as long as the projector is in 14:9 format I should be fine - but  
with most of the code examples it's tough to get everything to fit  
just right



* slide "Antlibs - Making a tla" (buildfile)
  - highlight the xmlns:tla declaration
  - highlight the use of that namespace   

  - the  line is too long (just cuts the last quotation  
mark on my machine)

  - indents not right (TAB-problems?)


hope not!

-- target-get end marker not on the right place  mmmh   
I send the new ;-)




  
  


  

  

  





cheers I'll do some cut-n-paste to fix that up


* slide "Antlibs - Making a tla" (test)
  Nice shortcut to AntUnit ;-)


In English this is called a segue


* slide "Antlibs - Antunit"
  AFAIK AntUnit is no longer in the sandbox - it's in the antlib  
subproject

* slide "Antlibs - A compatibility 'trick'"
  - define tasks working with Ant prior 1.6 in the properties file
  - define tasks which require Ant 1.6+ in the antlib.xml
* slide "Finally..."
  - the last word "antversion)" is (on my machine) on the footer line.


cheers
Jan



-Ursprüngliche Nachricht-
Von: Kev Jackson [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 24. Juli 2006 07:09
An: Ant Developers List
Betreff: ApacheCon Asia slides preview

Hi all,

Here's a draft[1] of the slides I've prepared for the asian
apachecon.  If any of you have the time to review them and
offer feedback I'd be very grateful.  Bear in mind that I only
have until the end of this week to make any adjustments (so
anything significant will probably have to be ignored, I'm sorry).

Just FYI, I'm using S5[2] to produce the slides (down with
PowerPoint!) - it's an excellent tool and highly recommended.

Thanks
Kev

[1] http://people.apache.org/~kevj/apachecon-asia/antlibs.html
[2] http://meyerweb.com/eric/tools/s5/
--
"All governments are in equal measure good and evil.  The best
ideal is anarchy." - Leo Tolstoy


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



--
"In vain you tell me that Artificial Government is good, but that I  
fall out with the Abuse. The Thing! The Thing itself is the Abuse!" -  
Edmund Burke



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



AW: ApacheCon Asia slides preview

2006-07-28 Thread Jan.Materne
Nice stuff.

* slide "Extending Ant - Custom Tasks" has too many s (9) for that size
* slide "Extending Ant - Antlibs" - "automatically loaded by Ant at startup"
  When did we introduced that feature? The jar will be on the classpath, but 
AFAIK
  you have to declare it in your buildfile (xmlns, taskdef...)
* slide "Antlibs - Making a tla" (graphic)
  HTML error:  from the graphic not closed (missing right bracket)
* slide "Antlibs - Making a tla" (code)
  second code line is too long (on my machine ;-) - "nu" instead of "null);"
* slide "Antlibs - Making a tla" (buildfile)
  - highlight the xmlns:tla declaration
  - highlight the use of that namespace  
  - the  line is too long (just cuts the last quotation mark on my 
machine)
  - indents not right (TAB-problems?)
-- target-get end marker not on the right place  mmmh  I send the 
new ;-)



  
  


  

  

  



* slide "Antlibs - Making a tla" (test)
  Nice shortcut to AntUnit ;-)
* slide "Antlibs - Antunit"
  AFAIK AntUnit is no longer in the sandbox - it's in the antlib subproject
* slide "Antlibs - A compatibility 'trick'"
  - define tasks working with Ant prior 1.6 in the properties file
  - define tasks which require Ant 1.6+ in the antlib.xml
* slide "Finally..."
  - the last word "antversion)" is (on my machine) on the footer line.


cheers
Jan


>-Ursprüngliche Nachricht-
>Von: Kev Jackson [mailto:[EMAIL PROTECTED] 
>Gesendet: Montag, 24. Juli 2006 07:09
>An: Ant Developers List
>Betreff: ApacheCon Asia slides preview
>
>Hi all,
>
>Here's a draft[1] of the slides I've prepared for the asian 
>apachecon.  If any of you have the time to review them and 
>offer feedback I'd be very grateful.  Bear in mind that I only 
>have until the end of this week to make any adjustments (so 
>anything significant will probably have to be ignored, I'm sorry).
>
>Just FYI, I'm using S5[2] to produce the slides (down with
>PowerPoint!) - it's an excellent tool and highly recommended.
>
>Thanks
>Kev
>
>[1] http://people.apache.org/~kevj/apachecon-asia/antlibs.html
>[2] http://meyerweb.com/eric/tools/s5/
>--
>"All governments are in equal measure good and evil.  The best 
>ideal is anarchy." - Leo Tolstoy
>
>
>-
>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]



AW: [VOTE] Release Ant 1.7.0 beta1

2006-07-28 Thread Jan.Materne
>Do you agree with this plan

+1

Jan


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



Re: Ant 1.7 alpha available for testing...

2006-07-28 Thread jfuller




Looks good during my first checks.


looks good on OSX 10.4.6, will be testing this release on a 'serious' 
build server farm over the weekend (rhe4).


-- Jim Fuller

---
FlameDigital Limited | Webcomposite s.r.o.
Technical Director
Co-Author WROX Pro PHP4 XML, WROX Pro PHP Web Services
Co-Creator EXSLT http://www.exslt.org
Technical Reviewer WROX Beginning Databases, Beginning XSLT, XML
Handbook, Extreme XML 2004,2005,2006
XML Prague 2005/2006 http://www.xmlprague.cz
---

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