changeset 21428:e3438899928c

Bind NetBeans Build action directly to ./mx build command line invocation
author Jaroslav Tulach <jaroslav.tulach@oracle.com>
date Wed, 20 May 2015 05:37:55 +0200
parents 4de8827ca59b
children fdb6a466cc6f
files mxtool/mx.py
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mxtool/mx.py	Tue May 19 20:16:07 2015 +0200
+++ b/mxtool/mx.py	Wed May 20 05:37:55 2015 +0200
@@ -4433,14 +4433,17 @@
     out.close('condition')
 
     out.close('target')
-    out.open('target', {'name' : '-post-compile'})
+    out.open('target', {'name' : 'compile'})
     out.open('exec', {'executable' : sys.executable})
     out.element('env', {'key' : 'JAVA_HOME', 'value' : jdk.jdk})
     out.element('arg', {'value' : os.path.abspath(__file__)})
-    out.element('arg', {'value' : 'archive'})
-    out.element('arg', {'value' : '@GRAAL'})
+    out.element('arg', {'value' : 'build'})
+    out.element('arg', {'value' : '--only'})
+    out.element('arg', {'value' : p.name})
     out.close('exec')
     out.close('target')
+    out.open('target', {'name' : 'jar', 'depends' : 'compile'})
+    out.close('target')
     out.close('project')
     update_file(join(p.dir, 'build.xml'), out.xml(indent='\t', newl='\n'))
     if files: