DO NOT REPLY [Bug 26925] - API Documentation

2004-02-13 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://nagoya.apache.org/bugzilla/show_bug.cgi?id=26925

API Documentation





--- Additional Comments From [EMAIL PROTECTED]  2004-02-13 19:13 ---
See:

http://ant.apache.org/manual/antexternal.html

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



DO NOT REPLY [Bug 26925] New: - API Documentation

2004-02-13 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://nagoya.apache.org/bugzilla/show_bug.cgi?id=26925

API Documentation

   Summary: API Documentation
   Product: Ant
   Version: 1.1
  Platform: All
OS/Version: All
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Documentation
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


When viewing the API documentation, there are NO examples of the code syntax.  
How can I use an ANT task when I don't know the structure of the syntax and the 
correct way to use attributes of it?   Your API references do NOT help me!   
Please help!   Is there another source where I can find ANT task commands and 
how to use them?

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



DO NOT REPLY [Bug 26921] New: - problem running task on multiple ejb jars

2004-02-13 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://nagoya.apache.org/bugzilla/show_bug.cgi?id=26921

problem running  task on multiple ejb jars

   Summary: problem running  task on multiple ejb jars
   Product: Ant
   Version: 1.6.1
  Platform: All
OS/Version: All
Status: NEW
  Severity: Minor
  Priority: Other
 Component: Optional Tasks
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


When the  subtask is run on multiple directories to produce multiple 
ejb jars, each directory includes generated classes from the previous 
directories.

In other words, if the task is run on directories X, Y and Z, Y.jar contains 
classes from X and Z.jar contains classes from Y and Z.  If the task is run 
separately on X, Y and Z only the correct classes are included.

The files that are added are of the form:

<*>POAInvokeHandler.class
<*>POA.class
<*>Operations.class
<*>.class
<*>.class

The problem seems to be in the writeJar() method in BorlandDeploymentTool.java:

...
_genfiles.clear();  // <--- added this line

buildBorlandStubs(homes.iterator());

//add the gen files to the collection
files.putAll(_genfiles);

super.writeJar(baseName, jarFile, files, publicId);
...

And the correct files were incorporated in ejb jars.  Not sure of this is the 
correct solution but it seems to be.

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



DO NOT REPLY [Bug 26739] - should put all parameters into an external file when requested or automatically

2004-02-13 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://nagoya.apache.org/bugzilla/show_bug.cgi?id=26739

 should put all parameters into an external file when requested or 
automatically





--- Additional Comments From [EMAIL PROTECTED]  2004-02-13 16:26 ---
Created an attachment (id=10350)
proposed patch that  affects JDK 1.4+ only

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



RE: task for antlib jars

2004-02-13 Thread Jose Alberto Fernandez
> From: Dominique Devienne [mailto:[EMAIL PROTECTED] 
> 
> 
> > From: Jose Alberto Fernandez [mailto:[EMAIL PROTECTED]
> > Why does the antlib file or JAR would stay open beyond loading the 
> > classes and reading the antlib.xml?
> > 
> > Maybe what is needed here, is a way to tell ALL AntClassLoaders to 
> > please close their open files (JARS) and reopen if needed later.
> > 
> > After all, keeping the JARs open is just an optimization.
> 
> Well, after reading the antlib.xml, sure you could close the 
> JAR, but once a URLClassLoader from the JDK starts using 
> classes from the JAR (and most likely even before that), that 
> JAR will stay open so it's not swapped under the JVM. I know 
> for sure the Linux JVM memory-maps those JARs in the process 
> address space, and it's very possible the Windows VM does 
> something similar (thus the lock on the JAR file).
> 
> I'm not sure Ant wants to go into the business of writing 
> some custom ClassLoader that would not exhibit this 
> 'standard' behavior of SUN's JDKs...
> 

We already wrote a Custom classloader, and it already exhibit
non-standard behavior. And they are already registered at least 
as an event listener. So they could as well register for
a "please close your files" events as well.

If the file disapears and classes cannot be loaded after that,
then it should just throw a ClassNotFoundException or whatever.

Jose Alberto

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



DO NOT REPLY [Bug 26632] - rexec hangs

2004-02-13 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://nagoya.apache.org/bugzilla/show_bug.cgi?id=26632

rexec hangs





--- Additional Comments From [EMAIL PROTECTED]  2004-02-13 15:49 ---
think I've worked out what's going on here. Ant's rexec task tries to login 
using this code : 
/**
 *  Process a 'typical' login.  If it differs, use the read
 *  and write tasks explicitely
 */
private void login() {
if (addCarriageReturn) {
rexec.sendString("\n", true);
}
rexec.waitForString("ogin:");
rexec.sendString(userid, true);
rexec.waitForString("assword:");
rexec.sendString(password, false);
}


It is expecting the username and password prompts to be 'Login' & 'Password'. 
I am running REXECD/NT from denicomp.com on a win2k server as win2k doesn't 
ship with a RexecD service. Its rexec login is in this format 

Name (a.machine.com:auser):  myusername
Password (a.machine.com:auser): mypassword

So this is what's causing the hang.

To solve this I believe we need to explicitly use  &  within our 
 task (as per the javadoc comments).


One point I might make is that the rexecClient provided by commons-net logs on 
in the following independant manner

_output_.write(username.getBytes());
_output_.write('\0');
_output_.write(password.getBytes());
_output_.write('\0');
_output_.write(command.getBytes());
_output_.write('\0');
_output_.flush();

I've used the example in net-commons : /net-commons/src/java/examples/rexec.java
 successfully with my rexecD on a win2k server

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



Re: Microsoft XML scripting patent

2004-02-13 Thread Steve Loughran
Jose Alberto Fernandez wrote:
I went are read the sumary of the patent
from the links provided.
Not a layer, but I do not think it applies to ANT
maybe to scriptdef, but that seemed like a streach.
What I understood is that they pattented having
a bunch of different scripts in different languages
all sitting on the same file separated by XML tags
and being able to call each separate script in the 
collection from a menu.

So, it sound not like a pattent on scripting, but on
how to store collections of scripts in one file and being
able to execute them.
Any pattent layer around?

I do know this from spending time with them.
*never declare in any written form any belief that any product you have 
infringes on any patent you become aware of*

This is important, it complicates the legal defence, if, during a period 
of discovery, your statements are found and used against you.

So stop worrying. At least in public. And not even email in private. Use 
a phone, don't leave messages on an answering machine, write nothing down.

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


Re: Ant 1.6.1 release / md5sum missing in the source distribution

2004-02-13 Thread Antoine Lévy-Lambert
Matt Benson wrote:
--- Antoine_Lévy-Lambert <[EMAIL PROTECTED]> wrote:
 

Now I have found the reason why I did not generate
the md5sum files when 
building the ant 1.6.1 distribution.
the  task in the src-dist target failed, and
md5sum files are 
normally generated after this delete.
I had not paid attention to this failure.
I do not know why the delete failed, maybe this was

BUILD FAILED
C:\dev\asf\ant\build.xml:1210: Unable to delete
directory 
C:\dev\asf\ant\apache-ant-1.6.1
   

Were any or all of the files in the directory deleted?
 

$ find . | wc -l
  1051
[EMAIL PROTECTED] /cygdrive/c/dev/asf/ant/apache-ant-1.6.1
$  gzip -cd ../distribution/src/apache-ant-1.6.1-src.tar.gz | tar tvf - 
| wc -l
  1785
So 734 files were deleted, 1051 remained.

Since this is on Windoze, you may be being bitten by
that weird bug Peter tried to fix in .
Could well be.
 I have
been hit by it A LOT as I have worked on my
 stuff.  Apparently the Windows JVMs have
trouble letting go of resources so that sometimes an
attempt to delete a file you have created within the
life of the same VM fail.  I didn't want to believe
it, but it got to the point that my unit tests'
tearDown() methods were failing nearly every time... I
tried the magic solution to any Windows problem
(reboot) to no avail.  Web searches turned up the
dubious advice of calling System.gc(), which finally,
in desperation, I tried, only to discover that it
actually worked.  I verified the results with Sun JVMs
1.4.2 and 1.5.0beta, plus IBM 1.3.1 .  I was going to
commit my changes, but I am still waiting on my
access... the patch is attached.
-Matt

__
 

I think it is OK to check in this fix in the HEAD branch, along with a 
blurb about it in WHATSNEW.
Let's wait until you get your access though, it should not take long.

Antoine

--- src/main/org/apache/tools/ant/taskdefs/Delete.java  2004-02-13 
09:05:46.0 -0600
+++ groundwork/Delete.java  2004-02-12 16:47:44.0 -0600
@@ -22,6 +22,7 @@
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.DirectoryScanner;
import org.apache.tools.ant.Project;
+import org.apache.tools.ant.taskdefs.condition.Os;
import org.apache.tools.ant.types.FileSet;
import org.apache.tools.ant.types.PatternSet;
import org.apache.tools.ant.types.selectors.AndSelector;
@@ -535,12 +536,15 @@
//  protected and private methods
//
/**
- * Attempt to fix possible race condition when deleting
- * files on WinXP. If the delete does not work,
+ * Accommodate Windows bug encountered in both Sun and IBM JDKs.
+ * Others possible. If the delete does not work, call System.gc(),
 * wait a little and try again.
 */
private boolean delete(File f) {
if (!f.delete()) {
+if (Os.isFamily("windows")) {
+System.gc();
+}
try {
Thread.sleep(DELETE_RETRY_SLEEP_MILLIS);
return f.delete();
 


-
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: task for antlib jars

2004-02-13 Thread Mariano Benitez
that is why it makes more sense to me to define it as deleteOnExit, and 
not mess with trying to unload an antlib when I don't want it anymore.

MAriano
Dominique Devienne wrote:
From: Jose Alberto Fernandez [mailto:[EMAIL PROTECTED]
Why does the antlib file or JAR would stay open beyond
loading the classes and reading the antlib.xml?
Maybe what is needed here, is a way to tell ALL AntClassLoaders
to please close their open files (JARS) and reopen if needed later.
After all, keeping the JARs open is just an optimization.
   

Well, after reading the antlib.xml, sure you could close the JAR, but once a
URLClassLoader from the JDK starts using classes from the JAR (and most
likely even before that), that JAR will stay open so it's not swapped under
the JVM. I know for sure the Linux JVM memory-maps those JARs in the process
address space, and it's very possible the Windows VM does something similar
(thus the lock on the JAR file).
I'm not sure Ant wants to go into the business of writing some custom
ClassLoader that would not exhibit this 'standard' behavior of SUN's JDKs...
--DD
-
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: Ant 1.6.1 release / md5sum missing in the source distribution

2004-02-13 Thread Matt Benson
--- Antoine_Lévy-Lambert <[EMAIL PROTECTED]> wrote:
> Now I have found the reason why I did not generate
> the md5sum files when 
> building the ant 1.6.1 distribution.
> the  task in the src-dist target failed, and
> md5sum files are 
> normally generated after this delete.
> I had not paid attention to this failure.
> I do not know why the delete failed, maybe this was
> 
> BUILD FAILED
> 
> C:\dev\asf\ant\build.xml:1210: Unable to delete
> directory 
> C:\dev\asf\ant\apache-ant-1.6.1

Were any or all of the files in the directory deleted?
 Since this is on Windoze, you may be being bitten by
that weird bug Peter tried to fix in .  I have
been hit by it A LOT as I have worked on my
 stuff.  Apparently the Windows JVMs have
trouble letting go of resources so that sometimes an
attempt to delete a file you have created within the
life of the same VM fail.  I didn't want to believe
it, but it got to the point that my unit tests'
tearDown() methods were failing nearly every time... I
tried the magic solution to any Windows problem
(reboot) to no avail.  Web searches turned up the
dubious advice of calling System.gc(), which finally,
in desperation, I tried, only to discover that it
actually worked.  I verified the results with Sun JVMs
1.4.2 and 1.5.0beta, plus IBM 1.3.1 .  I was going to
commit my changes, but I am still waiting on my
access... the patch is attached.

-Matt



__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html--- src/main/org/apache/tools/ant/taskdefs/Delete.java  2004-02-13 
09:05:46.0 -0600
+++ groundwork/Delete.java  2004-02-12 16:47:44.0 -0600
@@ -22,6 +22,7 @@
 import org.apache.tools.ant.BuildException;
 import org.apache.tools.ant.DirectoryScanner;
 import org.apache.tools.ant.Project;
+import org.apache.tools.ant.taskdefs.condition.Os;
 import org.apache.tools.ant.types.FileSet;
 import org.apache.tools.ant.types.PatternSet;
 import org.apache.tools.ant.types.selectors.AndSelector;
@@ -535,12 +536,15 @@
 //  protected and private methods
 //
 /**
- * Attempt to fix possible race condition when deleting
- * files on WinXP. If the delete does not work,
+ * Accommodate Windows bug encountered in both Sun and IBM JDKs.
+ * Others possible. If the delete does not work, call System.gc(),
  * wait a little and try again.
  */
 private boolean delete(File f) {
 if (!f.delete()) {
+if (Os.isFamily("windows")) {
+System.gc();
+}
 try {
 Thread.sleep(DELETE_RETRY_SLEEP_MILLIS);
 return f.delete();

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

RE: task for antlib jars

2004-02-13 Thread Dominique Devienne
> From: Jose Alberto Fernandez [mailto:[EMAIL PROTECTED]
> Why does the antlib file or JAR would stay open beyond
> loading the classes and reading the antlib.xml?
> 
> Maybe what is needed here, is a way to tell ALL AntClassLoaders
> to please close their open files (JARS) and reopen if needed later.
> 
> After all, keeping the JARs open is just an optimization.

Well, after reading the antlib.xml, sure you could close the JAR, but once a
URLClassLoader from the JDK starts using classes from the JAR (and most
likely even before that), that JAR will stay open so it's not swapped under
the JVM. I know for sure the Linux JVM memory-maps those JARs in the process
address space, and it's very possible the Windows VM does something similar
(thus the lock on the JAR file).

I'm not sure Ant wants to go into the business of writing some custom
ClassLoader that would not exhibit this 'standard' behavior of SUN's JDKs...

--DD

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



RE: Microsoft XML scripting patent

2004-02-13 Thread Jan . Materne
> But  is not a collection of scripts.
>  is a collection of tasks in Java.
> That is what ANT provides, not scripts.

Correct. The right equivalent is .
But  can (nearly) be rewritten with
a  containing only one 

RE: Microsoft XML scripting patent

2004-02-13 Thread Jose Alberto Fernandez
But  is not a collection of scripts.
 is a collection of tasks in Java.
That is what ANT provides, not scripts.

In the worst case scenario, we are talking
about wether the 

RE: Microsoft XML scripting patent

2004-02-13 Thread Jan . Materne
> >Not only . You can do the same (storing) with
> >  
> >   
> >   >  ]]>
> >
> >  
> >  
> >
> Exactly, the patent descibes the contents of the ant "script" 
> manual page:
> http://ant.apache.org/manual/OptionalTasks/script.html
> Peter


And on [1] you can see, that´s very old. First version on that location
is from Feb 2001, ANT_13_BRANCH and I think you can find older one...
The version from Feb 2001 [2] contains all these infos I used in the 
example.


Jan

[1]
http://cvs.apache.org/viewcvs.cgi/ant/docs/manual/OptionalTasks/script.html
[2]
http://cvs.apache.org/viewcvs.cgi/*checkout*/ant/docs/manual/OptionalTasks/s
cript.html?content-type=text%2Fplain&rev=1.1.2.1



> >Does the ASF have a layer to check that?
> >
> >
> >Jan
> >
> >  
> >
> >>-Original Message-
> >>From: Antoine Lévy-Lambert [mailto:[EMAIL PROTECTED]
> >>Sent: Friday, February 13, 2004 3:14 PM
> >>To: Ant Developers List
> >>Subject: Re: Microsoft XML scripting patent
> >>
> >>
> >>[EMAIL PROTECTED] wrote:
> >>
> >>
> >>
> So, it sound not like a pattent on scripting, but on
> how to store collections of scripts in one file and being
> able to execute them.
>    
> 
> 
> 
> >>> as collection of scripts?
> >>>
> >>>Jan
> >>>
> >>>
> >>>
> >>> 
> >>>
> >>>  
> >>>
> >>The example provided on the web page showing MS's patent 
> show an xml 
> >>file containing a .bat file and a .vbs script, both 
> rewritten in some 
> >>xml format.
> >>
> >>As someone else wrote, it is a little bit like an ant script with 
> >>several scriptdefs in it.
> >>
> >>The MS patent talks about specific XML elements :
> >>
> >>
> >>  commands
> >>
> >> 
> >>
> >>
> >>I do not know whether their patent only applies to XML 
> >>scripts written 
> >>using this particular schema ? Or does the patent claim to 
> >>protect *all* 
> >>use of XML for scripts, and particularly this particular document 
> >>structure ?
> >>
> >>Antoine
> >>
> >>http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HIT
> >>OFF&p=1&u=/netahtml/search-bool.html&r=1&f=G&l=50&co1=AND&d=pt
> >>xt&s1=XML.ABST.&s2=Microsoft.ASNM.&OS=ABST/XML+AND+AN/Microsof
> >>
> >>
> >t&RS=ABST/XML+AND+AN/Microsoft
> >  
> >
> >>
> >>19. In a computer system having one or more scripts written 
> in one or 
> >>more scripting languages, a computer readable having stored 
> thereon a 
> >>data structure for encompassing the one or more scripts 
> into a single 
> >>file, the data structure comprising:
> >>
> >>a file element field for each of the one or more scripts, 
> >>wherein each 
> >>file element field delimits one of the one or more scripts;
> >>
> >>an extension attribute field included in each file element field, 
> >>wherein the extension attribute field identifies a 
> scripting language;
> >>
> >>a code element field included within each file element 
> field, wherein 
> >>the code element field contains script instructions in the 
> scripting 
> >>language identified in the extension attribute field;
> >>
> >>a name element field within each file element field, 
> wherein the name 
> >>element field contains a descriptive name; and
> >>
> >>a description element field within each file element field, 
> >>wherein the 
> >>description element field contains a functional description.
> >>
> >>wherein the data structure is configured to be parsed by a 
> >>parser into a 
> >>list for presentation to a user and that includes an 
> >>identifier for each 
> >>of the one or more scripts, the identifier comprising the 
> descriptive 
> >>name and functional description of each script.
> >>
> >>20. A data structure as defined in claim 19, further 
> >>comprising a CDATA 
> >>element field within the code element field, wherein the 
> >>CDATA element 
> >>field precludes data within the CDATA element field from being 
> >>recognized as a format of the data structure.
> >>
> >>21. A data structure as defined in claim 19, wherein the file 
> >>elements 
> >>for the one or more scripts are delimited by a collection element, 
> >>wherein the collection element is a root of the file.
> >>...
> >>
> >>
> >>
> -
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> >  
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


DO NOT REPLY [Bug 26632] - rexec hangs

2004-02-13 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://nagoya.apache.org/bugzilla/show_bug.cgi?id=26632

rexec hangs





--- Additional Comments From [EMAIL PROTECTED]  2004-02-13 14:27 ---
looks like another person is having this problem also : 
http://216.239.37.104/search?q=cache:mQ9-
Qr9UeyIJ:java2.5341.com/msg/48437.html+rexec+hangs&hl=en&lr=lang_en&ie=UTF-8

or just search google for "rexec hangs" 

is it just me or are the remote commands giving trouble?

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



Re: Microsoft XML scripting patent

2004-02-13 Thread Peter Reilly
[EMAIL PROTECTED] wrote:
Not only . You can do the same (storing) with
 
  
 
 ]]>
Exactly, the patent descibes the contents of the ant "script" manual page: http://ant.apache.org/manual/OptionalTasks/script.html Peter Does the ASF have a layer to check that? Jan -Original Message- From: Antoine Lévy-Lambert [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 3:14 PM To: Ant Developers List Subject: Re: Microsoft XML scripting patent [EMAIL PROTECTED] wrote: So, it sound not like a pattent on scripting, but on how to store collections of scripts in one file and being able to execute them. as collection of scripts? Jan The example provided on the web page showing MS's patent show an xml file containing a .bat file and a .vbs script, both rewritten in some xml format. As someone else wrote, it is a little bit like an ant script with several scriptdefs in it. The MS patent talks about specific XML elements : commands I do not know whether their patent only applies to XML scripts written using this particular schema ? Or does the patent claim to protect *all* use of XML for scripts, and particularly this particular document structure ? Antoine http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HIT OFF&p=1&u=/netahtml/search-bool.html&r=1&f=G&l=50&co1=AND&d=pt xt&s1=XML.ABST.&s2=Microsoft.ASNM.&OS=ABST/XML+AND+AN/Microsof t&RS=ABST/XML+AND+AN/Microsoft 19. In a computer system having one or more scripts written in one or more scripting languages, a computer readable having stored thereon a data structure for encompassing the one or more scripts into a single file, the data structure comprising: a file element field for each of the one or more scripts, wherein each file element field delimits one of the one or more scripts; an extension attribute field included in each file element field, wherein the extension attribute field identifies a scripting language; a code element field included within each file element field, wherein the code element field contains script instructions in the scripting language identified in the extension attribute field; a name element field within each file element field, wherein the name element field contains a descriptive name; and a description element field within each file element field, wherein the description element field contains a functional description. wherein the data structure is configured to be parsed by a parser into a list for presentation to a user and that includes an identifier for each of the one or more scripts, the identifier comprising the descriptive name and functional description of each script. 20. A data structure as defined in claim 19, further comprising a CDATA element field within the code element field, wherein the CDATA element field precludes data within the CDATA element field from being recognized as a format of the data structure. 21. A data structure as defined in claim 19, wherein the file elements for the one or more scripts are delimited by a collection element, wherein the collection element is a root of the file. ... - 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: Microsoft XML scripting patent

2004-02-13 Thread Jan . Materne
Not only . You can do the same (storing) with
  
   
  

  


Does the ASF have a layer to check that?


Jan

> -Original Message-
> From: Antoine Lévy-Lambert [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 13, 2004 3:14 PM
> To: Ant Developers List
> Subject: Re: Microsoft XML scripting patent
> 
> 
> [EMAIL PROTECTED] wrote:
> 
> >>So, it sound not like a pattent on scripting, but on
> >>how to store collections of scripts in one file and being
> >>able to execute them.
> >>
> >>
> >
> > as collection of scripts?
> >
> >Jan
> >
> >
> >
> >  
> >
> The example provided on the web page showing MS's patent show an xml 
> file containing a .bat file and a .vbs script, both rewritten in some 
> xml format.
> 
> As someone else wrote, it is a little bit like an ant script with 
> several scriptdefs in it.
> 
> The MS patent talks about specific XML elements :
> 
> 
>   commands
> 
>  
> 
> 
> I do not know whether their patent only applies to XML 
> scripts written 
> using this particular schema ? Or does the patent claim to 
> protect *all* 
> use of XML for scripts, and particularly this particular document 
> structure ?
> 
> Antoine
> 
> http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HIT
> OFF&p=1&u=/netahtml/search-bool.html&r=1&f=G&l=50&co1=AND&d=pt
> xt&s1=XML.ABST.&s2=Microsoft.ASNM.&OS=ABST/XML+AND+AN/Microsof
t&RS=ABST/XML+AND+AN/Microsoft
> 
> 19. In a computer system having one or more scripts written in one or 
> more scripting languages, a computer readable having stored thereon a 
> data structure for encompassing the one or more scripts into a single 
> file, the data structure comprising:
> 
> a file element field for each of the one or more scripts, 
> wherein each 
> file element field delimits one of the one or more scripts;
> 
> an extension attribute field included in each file element field, 
> wherein the extension attribute field identifies a scripting language;
> 
> a code element field included within each file element field, wherein 
> the code element field contains script instructions in the scripting 
> language identified in the extension attribute field;
> 
> a name element field within each file element field, wherein the name 
> element field contains a descriptive name; and
> 
> a description element field within each file element field, 
> wherein the 
> description element field contains a functional description.
> 
> wherein the data structure is configured to be parsed by a 
> parser into a 
> list for presentation to a user and that includes an 
> identifier for each 
> of the one or more scripts, the identifier comprising the descriptive 
> name and functional description of each script.
> 
> 20. A data structure as defined in claim 19, further 
> comprising a CDATA 
> element field within the code element field, wherein the 
> CDATA element 
> field precludes data within the CDATA element field from being 
> recognized as a format of the data structure.
> 
> 21. A data structure as defined in claim 19, wherein the file 
> elements 
> for the one or more scripts are delimited by a collection element, 
> wherein the collection element is a root of the file.
> ...
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


Re: Microsoft XML scripting patent

2004-02-13 Thread Antoine Lévy-Lambert
[EMAIL PROTECTED] wrote:
So, it sound not like a pattent on scripting, but on
how to store collections of scripts in one file and being
able to execute them.
   

 as collection of scripts?
Jan

 

The example provided on the web page showing MS's patent show an xml 
file containing a .bat file and a .vbs script, both rewritten in some 
xml format.

As someone else wrote, it is a little bit like an ant script with 
several scriptdefs in it.

The MS patent talks about specific XML elements :

   
 commands
   


I do not know whether their patent only applies to XML scripts written 
using this particular schema ? Or does the patent claim to protect *all* 
use of XML for scripts, and particularly this particular document 
structure ?

Antoine
http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&p=1&u=/netahtml/search-bool.html&r=1&f=G&l=50&co1=AND&d=ptxt&s1=XML.ABST.&s2=Microsoft.ASNM.&OS=ABST/XML+AND+AN/Microsoft&RS=ABST/XML+AND+AN/Microsoft

19. In a computer system having one or more scripts written in one or 
more scripting languages, a computer readable having stored thereon a 
data structure for encompassing the one or more scripts into a single 
file, the data structure comprising:

a file element field for each of the one or more scripts, wherein each 
file element field delimits one of the one or more scripts;

an extension attribute field included in each file element field, 
wherein the extension attribute field identifies a scripting language;

a code element field included within each file element field, wherein 
the code element field contains script instructions in the scripting 
language identified in the extension attribute field;

a name element field within each file element field, wherein the name 
element field contains a descriptive name; and

a description element field within each file element field, wherein the 
description element field contains a functional description.

wherein the data structure is configured to be parsed by a parser into a 
list for presentation to a user and that includes an identifier for each 
of the one or more scripts, the identifier comprising the descriptive 
name and functional description of each script.

20. A data structure as defined in claim 19, further comprising a CDATA 
element field within the code element field, wherein the CDATA element 
field precludes data within the CDATA element field from being 
recognized as a format of the data structure.

21. A data structure as defined in claim 19, wherein the file elements 
for the one or more scripts are delimited by a collection element, 
wherein the collection element is a root of the file.
...

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


RE: Microsoft XML scripting patent

2004-02-13 Thread Jan . Materne
> So, it sound not like a pattent on scripting, but on
> how to store collections of scripts in one file and being
> able to execute them.

 as collection of scripts?

Jan



> 
> Any pattent layer around?
> 
> Jose Alberto
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> > Sent: 13 February 2004 07:54
> > To: [EMAIL PROTECTED]
> > Subject: FW: Microsoft XML scripting patent
> > 
> > 
> > Good question.
> > But I don´t know the answer :(
> > 
> > Especially I don´t know how the patent relates to Ant.
> > Maybe Alex Kipman knows more?
> > 
> > 
> > Jan
> > 
> > -Original Message-
> > From: Jonathan Woods [mailto:[EMAIL PROTECTED] 
> > Sent: Friday, February 13, 2004 8:01 AM
> > To: user@ant.apache.org
> > Subject: Microsoft XML scripting patent
> > 
> > 
> > I haven't had a chance to do more than skim the news.com 
> > article on Microsoft's recently granted patent on the use of 
> > XML to hold scripting content...
> >  
> http://news.com.com/2100-7345-5158432.html
>  
> ... but does anyone else think this poses a problem for Ant?
>  
> Jon
> 
> -
> 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: Microsoft XML scripting patent

2004-02-13 Thread Jose Alberto Fernandez
I went are read the sumary of the patent
from the links provided.
Not a layer, but I do not think it applies to ANT
maybe to scriptdef, but that seemed like a streach.

What I understood is that they pattented having
a bunch of different scripts in different languages
all sitting on the same file separated by XML tags
and being able to call each separate script in the 
collection from a menu.

So, it sound not like a pattent on scripting, but on
how to store collections of scripts in one file and being
able to execute them.

Any pattent layer around?

Jose Alberto

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: 13 February 2004 07:54
> To: [EMAIL PROTECTED]
> Subject: FW: Microsoft XML scripting patent
> 
> 
> Good question.
> But I don´t know the answer :(
> 
> Especially I don´t know how the patent relates to Ant.
> Maybe Alex Kipman knows more?
> 
> 
> Jan
> 
> -Original Message-
> From: Jonathan Woods [mailto:[EMAIL PROTECTED] 
> Sent: Friday, February 13, 2004 8:01 AM
> To: user@ant.apache.org
> Subject: Microsoft XML scripting patent
> 
> 
> I haven't had a chance to do more than skim the news.com 
> article on Microsoft's recently granted patent on the use of 
> XML to hold scripting content...
>  
http://news.com.com/2100-7345-5158432.html
 
... but does anyone else think this poses a problem for Ant?
 
Jon

-
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: Ant 1.6.1 release / md5sum missing in the source distribution

2004-02-13 Thread Antoine Lévy-Lambert
Now I have found the reason why I did not generate the md5sum files when 
building the ant 1.6.1 distribution.
the  task in the src-dist target failed, and md5sum files are 
normally generated after this delete.
I had not paid attention to this failure.
I do not know why the delete failed, maybe this was due to the Norton 
Antivirus Daemon looking at this directory ?
It is not a reproducible problem.

Cheers,
Antoine
src-dist:
   [mkdir] Created dir: C:\dev\asf\ant\apache-ant-1.6.1
[copy] Copying 3 files to C:\dev\asf\ant\apache-ant-1.6.1\lib
[copy] Copying 1280 files to C:\dev\asf\ant\apache-ant-1.6.1\src
[copy] Copying 274 files to C:\dev\asf\ant\apache-ant-1.6.1\docs
[copy] Copying 14 files to C:\dev\asf\ant\apache-ant-1.6.1
 [zip] Building zip: 
C:\dev\asf\ant\distribution\src\apache-ant-1.6.1-src.zip
 [tar] Building tar: 
C:\dev\asf\ant\distribution\src\apache-ant-1.6.1-src.tar
[gzip] Building: 
C:\dev\asf\ant\distribution\src\apache-ant-1.6.1-src.tar.gz
   [bzip2] Building: 
C:\dev\asf\ant\distribution\src\apache-ant-1.6.1-src.tar.bz2
  [delete] Deleting: 
C:\dev\asf\ant\distribution\src\apache-ant-1.6.1-src.tar
  [delete] Deleting directory C:\dev\asf\ant\apache-ant-1.6.1


BUILD FAILED
C:\dev\asf\ant\build.xml:1210: Unable to delete directory 
C:\dev\asf\ant\apache-ant-1.6.1


Total time: 7 minutes 29 seconds

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


RE: ant -projecthelp

2004-02-13 Thread Jan . Materne
If there is one with description - yes.
If none of the targets has one, all are listed.

Jan

> -Original Message-
> From: Mariano Benitez [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 13, 2004 1:36 PM
> To: Ant Developers List
> Subject: Re: ant -projecthelp
> 
> 
> I'm sorry, forgot it only shows the ones with description :)
> 
> MAriano
> 
> [EMAIL PROTECTED] wrote:
> 
> >Yes and it does.
> >An imported buildfile is part of your buildfile. So why not showing?
> >
> >Jan
> >
> >
> >  
> >
> >>-Original Message-
> >>From: Mariano Benitez [mailto:[EMAIL PROTECTED]
> >>Sent: Friday, February 13, 2004 12:12 AM
> >>To: Ant Developers List
> >>Subject: ant -projecthelp 
> >>
> >>
> >>should it include the targets of ed builds?
> >>
> >>MAriano
> >>
> >>
> -
> >>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: ant -projecthelp

2004-02-13 Thread Mariano Benitez
I'm sorry, forgot it only shows the ones with description :)
MAriano
[EMAIL PROTECTED] wrote:
Yes and it does.
An imported buildfile is part of your buildfile. So why not showing?
Jan
 

-Original Message-
From: Mariano Benitez [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 12:12 AM
To: Ant Developers List
Subject: ant -projecthelp 

should it include the targets of ed builds?
MAriano
-
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: ant

2004-02-13 Thread Antoine Lévy-Lambert
Henk P. Penning wrote:
Antoine,
 You may want to fix this:
   dist/ant/ant-current-src.zip.md5
 is a dead symlink.
 regards.
 HPP
Henk P. Penning, Dept of Computer Science, Utrecht University \__/  \
Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands. \__/
Telephone: +31-30-2534106, fax: +31-30-2513791 /  \__/  \__/  \__/  \
http://www.cs.uu.nl/staff/henkp.html   \__/  \__/  \__/  \__/
 

I have just now uploaded md5 files for the source distribution.
Still do not know why these filese were not generated in the first place.
Antoine
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Ant 1.6.1 release / md5sum missing in the source distribution

2004-02-13 Thread Antoine Lévy-Lambert
Hi,
I have received this email, and I can confirm that the md5sum files are 
missing for the *.tar.bz2, *.zip and *.tar.gz in the source directory.
I do not understand why, I simply used the build.xml of ant and ran the 
distribution target, but the md5 sum files apparently did not get generated.
Antoine

 Original Message 
Subject:ant
Date:   Fri, 13 Feb 2004 12:17:28 +0100 (MET)
From:   Henk P. Penning <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]

Antoine,
 You may want to fix this:
   dist/ant/ant-current-src.zip.md5
 is a dead symlink.
 regards.
 HPP
Henk P. Penning, Dept of Computer Science, Utrecht University \__/  \
Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands. \__/
Telephone: +31-30-2534106, fax: +31-30-2513791 /  \__/  \__/  \__/  \
http://www.cs.uu.nl/staff/henkp.html   \__/  \__/  \__/  \__/

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


RE: task for antlib jars

2004-02-13 Thread Jose Alberto Fernandez
Or a small task that can be called at the right time
on your build before deleting.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: 13 February 2004 11:14
> To: [EMAIL PROTECTED]
> Subject: RE:  task for antlib jars
> 
> 
> > Maybe what is needed here, is a way to tell ALL AntClassLoaders
> > to please close their open files (JARS) and reopen if needed later.
> > 
> > After all, keeping the JARs open is just an optimization.
> 
> 
> Sounds like a flag
>   ant -releaselibs ant.jar junit.jar
> 
> 
> Jan
> 

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



RE: task for antlib jars

2004-02-13 Thread Jan . Materne
> Maybe what is needed here, is a way to tell ALL AntClassLoaders 
> to please close their open files (JARS) and reopen if needed later.
> 
> After all, keeping the JARs open is just an optimization.


Sounds like a flag
  ant -releaselibs ant.jar junit.jar


Jan


RE: task for antlib jars

2004-02-13 Thread Jose Alberto Fernandez
> From: Steve Loughran [mailto:[EMAIL PROTECTED] 
> 
> Mariano Benitez wrote:
> > Hi!
> > 
> >I am using antlibs, and I face the normal problem in 
> windows of not
> > being able of deleting the file while it is used.
> > 
> >I know this discussion must have probably taken place, I 
> could not
> > just find it :( Has there been any attempt to use 
> File.deleteOnExit() as 
> > an option for the task? or another task?
> > 
> 
> Alternatively, we may need a way to unload an antlib
> 

Why does the antlib file or JAR would stay open beyond
loading the classes and reading the antlib.xml?

Maybe what is needed here, is a way to tell ALL AntClassLoaders 
to please close their open files (JARS) and reopen if needed later.

After all, keeping the JARs open is just an optimization.

Jose Alberto

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



RE: notes on embedding ANT

2004-02-13 Thread Jim Fuller
> From: Paul F. Williams [mailto:[EMAIL PROTECTED] 
> Sent: 13 February 2004 04:59
> To: [EMAIL PROTECTED]
> Subject: notes on embedding ANT
 
> I want to use ANT's task engine in my own app.  I don't want 
> to invoke it from a command line.  I don't want to run 
> individual tasks myself.  I want to use the ANT engine 
> internally to process an XML script.  Maybe there is an 
> established way to use ANT this way, but I found none.

You can programatically instruct Ant to process builds, of course this
is in Java and you will then consider the implications of ensuring that
Ant is on classpath etc... .
 
> This script is in the META-INF directory of a JAR file.  I 
> don't want to extract the file to a temporary file and feed 
> it to ANT.  Instead, I would like to convert the script's 
> ZipEntry to an InputStream and pass the stream to ANT.

As I can see from the rest of the post you have already made a start, if
your are finding that your needs seem like a poor match with what Ant is
offering, its probably because Ant is firstly a build tool, I find using
Jelly a useful alternative to consider.
 
http://jakarta.apache.org/commons/jelly/

gl, Jim Fuller


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



Re: task for antlib jars

2004-02-13 Thread Steve Loughran
Mariano Benitez wrote:
Hi!
   I am using antlibs, and I face the normal problem in windows of not 
being able of deleting the file while it is used.

   I know this discussion must have probably taken place, I could not 
just find it :( Has there been any attempt to use File.deleteOnExit() as 
an option for the task? or another task?

Alternatively, we may need a way to unload an antlib
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DO NOT REPLY [Bug 26901] - regex with file mapper incorrectly handles ${file.separator}

2004-02-13 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://nagoya.apache.org/bugzilla/show_bug.cgi?id=26901

regex with file mapper incorrectly handles ${file.separator}





--- Additional Comments From [EMAIL PROTECTED]  2004-02-13 09:37 ---
Blame billy for this.
The \ was chosen as a directory separator for dos althought it had
for a number of years been used as a escape character in C and also
in ed. The regular expressions in ed spread over the years to emacs, perl
and python retaining \ as an escape character.

The documentation for mapper is correct for most of the mapper types,
but not for the specific regex mapper.

In dos / may also be used as a directory separator so the following
will work in a platform independent (well dos, unix and mac) fashion:


   
  

  


However this does not work for the "from" field in a regex mapper

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



Re: are antlib taskdefs case sensitive?

2004-02-13 Thread Peter Reilly
Yes all taskdef's and typedef's are case-sensitive:
For example:
Hello
will not work.
Peter
Mariano Benitez wrote:
I defined in my antlib.xml taskdef="directorySchema" 
and in the build I used 
it failed saying it did not find task directoryschema, while if I put 
the correct case, it works, that is ok?

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


FW: Microsoft XML scripting patent

2004-02-13 Thread Jan . Materne
Good question.
But I don´t know the answer :(

Especially I don´t know how the patent relates to Ant.
Maybe Alex Kipman knows more?


Jan

-Original Message-
From: Jonathan Woods [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 13, 2004 8:01 AM
To: user@ant.apache.org
Subject: Microsoft XML scripting patent


I haven't had a chance to do more than skim the news.com article on
Microsoft's recently granted patent on the use of XML to hold scripting
content...
 
http://news.com.com/2100-7345-5158432.html
 
... but does anyone else think this poses a problem for Ant?
 
Jon

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



RE: ant -projecthelp

2004-02-13 Thread Jan . Materne
Yes and it does.
An imported buildfile is part of your buildfile. So why not showing?

Jan


> -Original Message-
> From: Mariano Benitez [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 13, 2004 12:12 AM
> To: Ant Developers List
> Subject: ant -projecthelp 
> 
> 
> should it include the targets of ed builds?
> 
> MAriano
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


notes on embedding ANT

2004-02-13 Thread Paul F. Williams
I'm an ANT newbie.  Please forgive any newbie offenses.

I want to use ANT's task engine in my own app.  I don't want to invoke it
from a command line.  I don't want to run individual tasks myself.  I want
to use the ANT engine internally to process an XML script.  Maybe there is
an established way to use ANT this way, but I found none.

This script is in the META-INF directory of a JAR file.  I don't want to
extract the file to a temporary file and feed it to ANT.  Instead, I would
like to convert the script's ZipEntry to an InputStream and pass the stream
to ANT.

My current solution installs a project helper remarkably like the current
ProjectHelper2 class.  The main difference is that my parse() method is more
friendly to InputStreams.

My app's main method points ANT to my helper class via the system
properties.

I have an ANT engine wrapper much like Main.runBuild() that duplicates the
logic to run ANT.  It uses an InputStream instead of a File.

Everything works.  I pull the script as an InputStream and pass it to the
wrapper.  The wrapper passes the stream to the helper.  The helper parses
and runs the script.  (My next step is to provide my own specialized tasks
that I want ANT to resolve without a .)

Here are some obstacles I had to overcome:

1) I had to duplicate much of the functionality of the Main.runBuild method.
It would be nice if Main.runBuild() were refactored into a generic way to
start the ANT engine.  Doing so would make it easier for others to embed the
engine.

2) Main assumes a File (which is OK), but it would be nice if the code that
starts the engine would take an InputStream.

3) ProjectHelper.configureProject takes a File.  The actual
ProjectHelper.parse method takes an Object.  It would be nice if both used
Objects.

4) It would be nice if org.apache.tools.ant.helper.ProjectHelper2 were
friendly to InputStreams.  In fact, all the SAX parser needs is an
InputStream (converted into an InputSource).  The parser would not need to
close the stream; higher level methods would determine when to do so.  The
existing Main class would send a FileInputStream.  Other apps might send
their own InputStreams.  In short, streams seems like a more flexible
design.

One potential pitfall I see is ProjectHelper2 line 199:

inputSource.setSystemId(uri);

If the helper gets an InputStream, it will not have a URI.  I did not set
the URI, and it worked ok for me, but I don't know all the ramifications.

Do these suggestions sound reasonable?  If so, how might this pitiful wretch
of a newbie contribute?


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



DO NOT REPLY [Bug 26108] - delete task fails for jar file in CWD on WNT

2004-02-13 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://nagoya.apache.org/bugzilla/show_bug.cgi?id=26108

delete task fails for jar file in CWD on WNT





--- Additional Comments From [EMAIL PROTECTED]  2004-02-13 01:09 ---
This may not sound very common, but I use the same ant to build the jars that
are in the ant -lib  in 1.6, so when I try to delete them, it fails.

The problem is that I cannot change the ant script/env to remove the -lib ONLY
when I am building those jars. 

I am just asking for a File.deleteOnExit() option for .

(this may not be the bug to post this, but sounds like the problem you had is
related.)

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



task for antlib jars

2004-02-13 Thread Mariano Benitez
Hi!
   I am using antlibs, and I face the normal problem in windows of not 
being able of deleting the file while it is used.

   I know this discussion must have probably taken place, I could not 
just find it :( Has there been any attempt to use File.deleteOnExit() as 
an option for the task? or another task?

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


DO NOT REPLY [Bug 26765] - "-f" option works incorrectly if path includes "../"

2004-02-13 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://nagoya.apache.org/bugzilla/show_bug.cgi?id=26765

"-f" option works incorrectly if path includes "../"





--- Additional Comments From [EMAIL PROTECTED]  2004-02-13 01:00 ---
Build files have been modified since last report.  I have appended a copy 
of the file that produced the following result: 
 
[EMAIL PROTECTED]:~/j/src/ca/gorman/xml 
>ls ../build.xml 
../build.xml 
[EMAIL PROTECTED]:~/j/src/ca/gorman/xml 
>ant ../build.xml clean 
Buildfile: build.xml does not exist! 
Build failed 
[EMAIL PROTECTED]:~/j/src/ca/gorman/xml 
> 
 
=== build file = 
 
 
 
 
 
 
   
   
 
   
   
   
 
   
Build package ${package.name} 
Use "-projecthelp" option to get a list of targets 
Additional info in file comments 
   
 
   
   
   
   
   
   
   
   
   
 
   
   
 
 
 
 
   
 
   
   
 
 
   
 
   
   
 
 
   
 
   
   
 
   
   
 
  http://java.sun.com/j2se/1.4.2/docs/api/"/> 
   
   
   
   
 
   
 
   
   
 
  http://java.sun.com/j2se/1.4.2/docs/api/"/> 
   
   
   
   
 
 
   
 
   
 
   
   
 
 
 
   
 
   
 
   
   
 
 


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