This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Project-Run-Arguments doe not work | ||
---|---|---|---|
Product: | ide | Reporter: | dizzzz <dizzzz> |
Component: | Code | Assignee: | issues@ide <issues> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | CC: | jiriprox |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
dizzzz
2009-08-14 09:52:12 UTC
Can you please provide more info? What project do you use? How do you launch the application (there several way run main project, run single file etc..) Do you have more run configuration? Thanks Right, I found out what is wrong... -1- if I run the app with a main main class defined, by using F6 / run main project the parameters are passed okay -2- if I run the class directly (shift F6) these application parameters are NOT passed (did not check jvm settings yet) I am not sure what one would expect for 2, My assumption was (is?) that the run parameters as defined in the project properties would be used for the Run-File execution as well. You're right, there is issue for this problem - issue 68099 As a workaround you can use run configuration or modify your build-imlp.xml (in this case you have to turn off compile on save feature). The modification is to rewrite target run-single to this code <target depends="init,-do-not-recompile,compile-single" name="run-single"> <fail unless="run.class">Must select one file in the IDE or set run.class</fail> <j2seproject1:java classname="${run.class}"> <customize> <arg line="${application.args}"/> </customize> </j2seproject1:java> </target> *** This issue has been marked as a duplicate of 68099 *** Right, sorry for the fuzz, I wonder why I did not find this duplicate. Sorry for the extra work.... |