Mercurial > hg > graal-compiler
comparison mxtool/mx.py @ 19829:e87d55dfbbbb
trigger building all dependencies in NetBeans only when needed
Contributed-by: Jaroslav Tulach <jaroslav.tulach@gmail.com>
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 13 Mar 2015 11:26:37 +0100 |
parents | ad32fd810c83 |
children | bd953f563517 |
comparison
equal
deleted
inserted
replaced
19828:c9e3131099fb | 19829:e87d55dfbbbb |
---|---|
4170 | 4170 |
4171 out = XMLDoc() | 4171 out = XMLDoc() |
4172 out.open('project', {'name' : p.name, 'default' : 'default', 'basedir' : '.'}) | 4172 out.open('project', {'name' : p.name, 'default' : 'default', 'basedir' : '.'}) |
4173 out.element('description', data='Builds, tests, and runs the project ' + p.name + '.') | 4173 out.element('description', data='Builds, tests, and runs the project ' + p.name + '.') |
4174 out.element('import', {'file' : 'nbproject/build-impl.xml'}) | 4174 out.element('import', {'file' : 'nbproject/build-impl.xml'}) |
4175 out.open('target', {'name' : '-post-init'}) | |
4176 out.open('pathconvert', {'property' : 'comma.javac.classpath', 'pathsep' : ','}) | |
4177 out.element('path', {'path' : '${javac.classpath}'}) | |
4178 out.close('pathconvert') | |
4179 | |
4180 out.open('restrict', {'id' : 'missing.javac.classpath'}) | |
4181 out.element('filelist', {'dir' : '${basedir}', 'files' : '${comma.javac.classpath}'}) | |
4182 out.open('not') | |
4183 out.element('exists') | |
4184 out.close('not') | |
4185 out.close('restrict') | |
4186 | |
4187 out.element('property', {'name' : 'missing.javac.classpath', 'refid' : 'missing.javac.classpath'}) | |
4188 | |
4189 out.open('condition', {'property' : 'no.dependencies', 'value' : 'true'}) | |
4190 out.element('equals', {'arg1' : '${missing.javac.classpath}', 'arg2' : ''}) | |
4191 out.close('condition') | |
4192 | |
4193 out.element('property', {'name' : 'no.dependencies', 'value' : 'false'}) | |
4194 | |
4195 out.open('condition', {'property' : 'no.deps'}) | |
4196 out.element('equals', {'arg1' : '${no.dependencies}', 'arg2' : 'true'}) | |
4197 out.close('condition') | |
4198 | |
4199 out.close('target') | |
4175 out.open('target', {'name' : '-post-compile'}) | 4200 out.open('target', {'name' : '-post-compile'}) |
4176 out.open('exec', {'executable' : sys.executable}) | 4201 out.open('exec', {'executable' : sys.executable}) |
4177 out.element('env', {'key' : 'JAVA_HOME', 'value' : jdk.jdk}) | 4202 out.element('env', {'key' : 'JAVA_HOME', 'value' : jdk.jdk}) |
4178 out.element('arg', {'value' : os.path.abspath(__file__)}) | 4203 out.element('arg', {'value' : os.path.abspath(__file__)}) |
4179 out.element('arg', {'value' : 'archive'}) | 4204 out.element('arg', {'value' : 'archive'}) |