DO NOT REPLY [Bug 19150] - Command-line argument jvmarg attribute file not working.

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

Command-line argument jvmarg attribute file not working.

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID


DO NOT REPLY [Bug 19150] - Command-line argument jvmarg attribute file not working.

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

Command-line argument jvmarg attribute file not working.





--- Additional Comments From [EMAIL PROTECTED]  2003-04-24 06:14 ---
Created an attachment (id=5985)
Simple example of the problem


DO NOT REPLY [Bug 19150] - Command-line argument jvmarg attribute file not working.

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

Command-line argument jvmarg attribute file not working.





--- Additional Comments From [EMAIL PROTECTED]  2003-04-24 06:23 ---
Pls expand the zip directly under c:\

Otherwise you will have to edit the scripts.

Opena command promt in the c:\build\prj\ folder.
Type setenv
Type ant

This gives the errormessage:
C:\build\prjant
Buildfile: build.xml

init:
 [java] java.lang.NoClassDefFoundError: C:\build\cfg\compile/properties
 [java] Exception in thread main
 [java] Java Result: 1

BUILD SUCCESSFUL
Total time: 1 second


DO NOT REPLY [Bug 19150] - Command-line argument jvmarg attribute file not working.

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

Command-line argument jvmarg attribute file not working.





--- Additional Comments From [EMAIL PROTECTED]  2003-04-24 07:58 ---
My assumption of the file attribute, was that the underlying code reads the 
cmdline args in the file, and puts on the cmdline.

 (2) The file attribute of jvmarg means that you want to pass the absolute
 path of the file on the command line - it does not read the file at all.

I don't understand. Can you please give an example of the usage ?


DO NOT REPLY [Bug 19150] - Command-line argument jvmarg attribute file not working.

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

Command-line argument jvmarg attribute file not working.





--- Additional Comments From [EMAIL PROTECTED]  2003-04-24 09:19 ---
I think I've understood pretty well what you thought the attribute would do.

I don't have a use case for this attribute in the jvmarg context.  jvmarg
supports this attribute as it is implemented by the same code that also 
implements
arg - and there are tons of use-cases where you want to pass the absolute
path of a file as a command line argument to an arbitrary executable.


DO NOT REPLY [Bug 19150] - Command-line argument jvmarg attribute file not working.

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

Command-line argument jvmarg attribute file not working.





--- Additional Comments From [EMAIL PROTECTED]  2003-04-24 11:41 ---
Is it wrong to say then, that if you ever use the file attribute of the 
jvmarg task, it will always render the error:

 [java] java.lang.NoClassDefFoundError: C:\build\cfg\compile

, no matter how you use it, making the file attribute useless !?


DO NOT REPLY [Bug 19150] - Command-line argument jvmarg attribute file not working.

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

Command-line argument jvmarg attribute file not working.





--- Additional Comments From [EMAIL PROTECTED]  2003-04-24 11:56 ---
It may depend on the Java VM.  It could be that java in some future version
will have a command line option that takes an additional file argument.

OK, this has lead me to construct an esoteric use-case:

java classname=...
  jvmarg value=-classpath/
  jvmarg file=build/my.jar/
/java

will invoke java with the arguments -classpath FULL-PATH-TO/build/my.jar.

In this case, it will not lead to the error message you've seen.  It is not
a good use-case (and I don't know of any good one, I already said so), but it
is an expamle where the outcome is not the NoClassDefFoundError.

If Java 47.11 is going to have an option -paramfile that expects a filename
as additional parameter, the file attribute of jvmarg has suddenly become
useful.


DO NOT REPLY [Bug 19150] - Command-line argument jvmarg attribute file not working.

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

Command-line argument jvmarg attribute file not working.

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|CLOSED



--- Additional Comments From [EMAIL PROTECTED]  2003-04-24 12:59 ---
Thanks,
now I get it.

The Ant documentation currently has no examples of how to use the file 
attribute in this context.


DO NOT REPLY [Bug 19150] - Command-line argument jvmarg attribute file not working.

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

Command-line argument jvmarg attribute file not working.





--- Additional Comments From [EMAIL PROTECTED]  2003-04-23 11:54 ---
I think you are misunderstanding a few things.

(1) jvmarg gets passed to the java VM (i.e. java.exe) and nowhere else.  The VM
doesn't know how to read command line arguments from a file.

(2) The file attribute of jvmarg means that you want to pass the absolute
path of the file on the command line - it does not read the file at all.


DO NOT REPLY [Bug 19150] - Command-line argument jvmarg attribute file not working.

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

Command-line argument jvmarg attribute file not working.





--- Additional Comments From [EMAIL PROTECTED]  2003-04-23 12:07 ---
Do you mean that:
jvmarg file=../../cfg/cmdline.properties/

gets translated into:

java -Dfile=/usr/home/xpse/cfg/cmdline.properties/


DO NOT REPLY [Bug 19150] - Command-line argument jvmarg attribute file not working.

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

Command-line argument jvmarg attribute file not working.





--- Additional Comments From [EMAIL PROTECTED]  2003-04-23 12:16 ---
No, I mean

jvmarg file=../../cfg/cmdline.properties/

gets translated to

java WHATEVER-IS-THE-ABSOLUTE-PATH-OF/cfg/cmdline.properties

i.e, if your build file is in C:\temp\cmdltest and you don't fiddle with 
basedir,
it gets translated to

java C:\cfg\cmdline.properties