Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_langtools
提交
5507e041
D
dragonwell8_langtools
项目概览
openanolis
/
dragonwell8_langtools
通知
0
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_langtools
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
5507e041
编写于
9月 22, 2010
作者:
J
jjg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
Reviewed-by: ohair
上级
910992fc
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
56 addition
and
55 deletion
+56
-55
make/netbeans/langtools/build.xml
make/netbeans/langtools/build.xml
+56
-55
未找到文件。
make/netbeans/langtools/build.xml
浏览文件 @
5507e041
...
@@ -31,44 +31,44 @@
...
@@ -31,44 +31,44 @@
-->
-->
<project
name=
"langtools-netbeans"
default=
"build"
basedir=
"../../.."
>
<project
name=
"langtools-netbeans"
default=
"build"
basedir=
"../../.."
>
<property
name=
"langtools.properties"
<property
name=
"langtools.properties"
location=
"make/netbeans/langtools/nbproject/private/langtools.properties"
/>
location=
"make/netbeans/langtools/nbproject/private/langtools.properties"
/>
<!--
<!--
Instead of importing the main build file, we could call it when needed.
Instead of importing the main build file, we could call it when needed.
That would reduce the list of Ant targets that get displayed for this
That would reduce the list of Ant targets that get displayed for this
file, but it also complicates the interface between the project build
file, but it also complicates the interface between the project build
file and the main build file. For example, some imported targets
file and the main build file. For example, some imported targets
would have to be reclared, properties would have to be restructured,
would have to be reclared, properties would have to be restructured,
and it would be harder to run results (e.g. in properties) from nested
and it would be harder to run results (e.g. in properties) from nested
targets.
targets.
-->
-->
<import
file=
"../../build.xml"
/>
<import
file=
"../../build.xml"
/>
<!-- Build project. (action: build; F11)
<!-- Build project. (action: build; F11)
If langtools.tool.name is set, then just build that tool; otherwise
If langtools.tool.name is set, then just build that tool; otherwise
build all tools.
build all tools.
-->
-->
<target
name=
"build"
depends=
"-get-tool-if-set,-build-tool,-build-all"
<target
name=
"build"
depends=
"-get-tool-if-set,-build-tool,-build-all"
description=
"Build one or all langtools tools"
description=
"Build one or all langtools tools"
/>
/>
<target
name=
"-build-tool"
if=
"langtools.tool.name"
>
<target
name=
"-build-tool"
if=
"langtools.tool.name"
>
<echo
level=
"info"
message=
"Building ${langtools.tool.name}"
/>
<echo
level=
"info"
message=
"Building ${langtools.tool.name}"
/>
<echo
level=
"verbose"
message=
"(Unset langtools.tool.name to build all tools)"
/>
<echo
level=
"verbose"
message=
"(Unset langtools.tool.name to build all tools)"
/>
<antcall
target=
"build-${langtools.tool.name}"
/>
<antcall
target=
"build-${langtools.tool.name}"
/>
</target>
</target>
<target
name=
"-build-all"
unless=
"langtools.tool.name"
>
<target
name=
"-build-all"
unless=
"langtools.tool.name"
>
<echo
level=
"info"
message=
"Building all tools"
/>
<echo
level=
"info"
message=
"Building all tools"
/>
<echo
level=
"verbose"
message=
"(Set langtools.tool.name to build a single tool)"
/>
<echo
level=
"verbose"
message=
"(Set langtools.tool.name to build a single tool)"
/>
<antcall
target=
"build-all-tools"
/>
<antcall
target=
"build-all-tools"
/>
</target>
</target>
<!-- Compile a single file. (action: compile.single; F9) -->
<!-- Compile a single file. (action: compile.single; F9) -->
<target
name=
"compile-single"
depends=
"build-bootstrap-javac"
>
<target
name=
"compile-single"
depends=
"build-bootstrap-javac"
>
<fail
unless=
"includes"
>
Must set property 'includes'
</fail>
<fail
unless=
"includes"
>
Must set property 'includes'
</fail>
<javac
fork=
"true"
executable=
"${build.bootstrap.dir}/bin/javac"
<javac
fork=
"true"
executable=
"${build.bootstrap.dir}/bin/javac"
...
@@ -78,38 +78,38 @@
...
@@ -78,38 +78,38 @@
sourcepath=
""
sourcepath=
""
includeAntRuntime=
"no"
includeAntRuntime=
"no"
target=
"${javac.target}"
target=
"${javac.target}"
debug=
"${javac.debug}"
debug=
"${javac.debug}"
debuglevel=
"${javac.debuglevel}"
/>
debuglevel=
"${javac.debuglevel}"
/>
</target>
</target>
<!-- Run tool. (action: run; F6)
<!-- Run tool. (action: run; F6)
Use langtools.tool.name and langtools.tool.args properties if set; otherwise prompt
Use langtools.tool.name and langtools.tool.args properties if set; otherwise prompt
the user.
the user.
-->
-->
<target
name=
"run"
depends=
"-check-target.java.home,build,-def-run,-get-tool-and-args"
<target
name=
"run"
depends=
"-check-target.java.home,build,-def-run,-get-tool-and-args"
description=
"run tool"
>
description=
"run tool"
>
<echo
level=
"info"
message=
"Run ${langtools.tool.name} with args ${langtools.tool.args}"
/>
<echo
level=
"info"
message=
"Run ${langtools.tool.name} with args ${langtools.tool.args}"
/>
<run
mainclass=
"com.sun.tools.${langtools.tool.name}.Main"
args=
"${langtools.tool.args}"
/>
<run
mainclass=
"com.sun.tools.${langtools.tool.name}.Main"
args=
"${langtools.tool.args}"
/>
</target>
</target>
<!-- Run a selected class. (action: run.single; shift-F6) -->
<!-- Run a selected class. (action: run.single; shift-F6) -->
<target
name=
"run-single"
depends=
"-check-target.java.home,-def-run"
>
<target
name=
"run-single"
depends=
"-check-target.java.home,-def-run"
>
<fail
unless=
"run.classname"
>
Must set property 'run.classname'
</fail>
<fail
unless=
"run.classname"
>
Must set property 'run.classname'
</fail>
<echo
level=
"info"
message=
"run ${run.classname}"
/>
<echo
level=
"info"
message=
"run ${run.classname}"
/>
<run
mainclass=
"${run.classname}"
args=
""
/>
<run
mainclass=
"${run.classname}"
args=
""
/>
</target>
</target>
<!-- Test project, and display results if tests failed. (action: test; Alt-F6)
<!-- Test project, and display results if tests failed. (action: test; Alt-F6)
If langtools.tool.name is set, then just test that tool; otherwise
If langtools.tool.name is set, then just test that tool; otherwise
test all tools.
test all tools.
-->
-->
<target
name=
"jtreg"
depends=
"-get-tool-if-set,-jtreg-tool,-jtreg-all"
<target
name=
"jtreg"
depends=
"-get-tool-if-set,-jtreg-tool,-jtreg-all"
description=
"Test one or all langtools tools"
description=
"Test one or all langtools tools"
/>
/>
<target
name=
"-jtreg-tool"
if=
"langtools.tool.name"
>
<target
name=
"-jtreg-tool"
if=
"langtools.tool.name"
>
<echo
level=
"info"
message=
"Testing ${langtools.tool.name}"
/>
<echo
level=
"info"
message=
"Testing ${langtools.tool.name}"
/>
<echo
level=
"verbose"
message=
"(Unset langtools.tool.name to test all tools)"
/>
<echo
level=
"verbose"
message=
"(Unset langtools.tool.name to test all tools)"
/>
...
@@ -118,7 +118,7 @@
...
@@ -118,7 +118,7 @@
<target
name=
"-show-jtreg"
/>
<target
name=
"-show-jtreg"
/>
</antcall>
</antcall>
</target>
</target>
<target
name=
"-jtreg-all"
unless=
"langtools.tool.name"
>
<target
name=
"-jtreg-all"
unless=
"langtools.tool.name"
>
<echo
level=
"info"
message=
"Testing all tools"
/>
<echo
level=
"info"
message=
"Testing all tools"
/>
<echo
level=
"verbose"
message=
"(Set langtools.tool.name to test a single tool)"
/>
<echo
level=
"verbose"
message=
"(Set langtools.tool.name to test a single tool)"
/>
...
@@ -127,36 +127,36 @@
...
@@ -127,36 +127,36 @@
<target
name=
"-show-jtreg"
/>
<target
name=
"-show-jtreg"
/>
</antcall>
</antcall>
</target>
</target>
<target
name=
"-show-jtreg"
if=
"netbeans.home"
unless=
"jtreg.passed"
>
<target
name=
"-show-jtreg"
if=
"netbeans.home"
unless=
"jtreg.passed"
>
<nbbrowse
file=
"${jtreg.report}/report.html"
/>
<nbbrowse
file=
"${jtreg.report}/report.html"
/>
<fail>
Some tests failed; see report for details.
</fail>
<fail>
Some tests failed; see report for details.
</fail>
</target>
</target>
<!-- Debug tool in NetBeans. -->
<!-- Debug tool in NetBeans. -->
<target
name=
"debug"
depends=
"-check-target.java.home,-def-run,-def-start-debugger,-get-tool-and-args,build"
if=
"netbeans.home"
>
<target
name=
"debug"
depends=
"-check-target.java.home,-def-run,-def-start-debugger,-get-tool-and-args,build"
if=
"netbeans.home"
>
<echo
level=
"info"
message=
"Debug ${langtools.tool.name} with args ${langtools.tool.args}"
/>
<echo
level=
"info"
message=
"Debug ${langtools.tool.name} with args ${langtools.tool.args}"
/>
<start-debugger/>
<start-debugger/>
<run
mainclass=
"com.sun.tools.${langtools.tool.name}.Main"
args=
"${langtools.tool.args}"
jpda.jvmargs=
"${jpda.jvmargs}"
/>
<run
mainclass=
"com.sun.tools.${langtools.tool.name}.Main"
args=
"${langtools.tool.args}"
jpda.jvmargs=
"${jpda.jvmargs}"
/>
</target>
</target>
<!-- Debug a selected class . -->
<!-- Debug a selected class . -->
<target
name=
"debug-single"
depends=
"-check-target.java.home,-def-start-debugger,-def-run"
>
<target
name=
"debug-single"
depends=
"-check-target.java.home,-def-start-debugger,-def-run"
>
<fail
unless=
"debug.classname"
>
Must set property 'debug.classname'
</fail>
<fail
unless=
"debug.classname"
>
Must set property 'debug.classname'
</fail>
<start-debugger/>
<start-debugger/>
<run
mainclass=
"${debug.classname}"
default.args=
""
jpda.jvmargs=
"${jpda.jvmargs}"
/>
<run
mainclass=
"${debug.classname}"
default.args=
""
jpda.jvmargs=
"${jpda.jvmargs}"
/>
</target>
</target>
<!-- Debug a jtreg test. -->
<!-- Debug a jtreg test. -->
<target
name=
"debug-jtreg"
depends=
"-check-target.java.home,-def-start-debugger,-def-jtreg"
>
<target
name=
"debug-jtreg"
depends=
"-check-target.java.home,-def-start-debugger,-def-jtreg"
>
<fail
unless=
"jtreg.tests"
>
Must set property 'jtreg.tests'
</fail>
<fail
unless=
"jtreg.tests"
>
Must set property 'jtreg.tests'
</fail>
<start-debugger/>
<start-debugger/>
<jtreg-tool
name=
"debug"
samevm=
"false"
tests=
"${jtreg.tests}"
jpda.jvmargs=
"${jpda.jvmargs}"
/>
<jtreg-tool
name=
"debug"
samevm=
"false"
tests=
"${jtreg.tests}"
jpda.jvmargs=
"${jpda.jvmargs}"
/>
</target>
</target>
<!-- Update a class being debugged. -->
<!-- Update a class being debugged. -->
<target
name=
"debug-fix"
if=
"langtools.tool.name"
>
<target
name=
"debug-fix"
if=
"langtools.tool.name"
>
<fail
unless=
"class"
>
Must set property 'class'
<fail
unless=
"class"
>
Must set property 'class'
</fail>
</fail>
...
@@ -169,16 +169,16 @@
...
@@ -169,16 +169,16 @@
</fileset>
</fileset>
</nbjpdareload>
</nbjpdareload>
</target>
</target>
<!-- Generate javadoc for one or all tools. (action: javadoc; Alt-F6)
<!-- Generate javadoc for one or all tools. (action: javadoc; Alt-F6)
If langtools.tool.name is set, then just test that tool; otherwise
If langtools.tool.name is set, then just test that tool; otherwise
test all tools.
test all tools.
-->
-->
<target
name=
"javadoc"
depends=
"-javadoc-tool,-javadoc-all"
<target
name=
"javadoc"
depends=
"-javadoc-tool,-javadoc-all"
description=
"Generate javadoc for one or all langtools tools"
description=
"Generate javadoc for one or all langtools tools"
/>
/>
<target
name=
"-javadoc-tool"
if=
"langtools.tool.name"
>
<target
name=
"-javadoc-tool"
if=
"langtools.tool.name"
>
<echo
level=
"info"
message=
"Generate javadoc for ${langtools.tool.name}"
/>
<echo
level=
"info"
message=
"Generate javadoc for ${langtools.tool.name}"
/>
<echo
level=
"verbose"
message=
"(Unset langtools.tool.name to generate javadoc for all tools)"
/>
<echo
level=
"verbose"
message=
"(Unset langtools.tool.name to generate javadoc for all tools)"
/>
...
@@ -187,7 +187,7 @@
...
@@ -187,7 +187,7 @@
<target
name=
"-show-javadoc"
/>
<target
name=
"-show-javadoc"
/>
</antcall>
</antcall>
</target>
</target>
<target
name=
"-javadoc-all"
unless=
"langtools.tool.name"
>
<target
name=
"-javadoc-all"
unless=
"langtools.tool.name"
>
<echo
level=
"info"
message=
"Generate javadoc for all tools"
/>
<echo
level=
"info"
message=
"Generate javadoc for all tools"
/>
<echo
level=
"verbose"
message=
"(Set langtools.tool.name to generate javadoc for a single tool)"
/>
<echo
level=
"verbose"
message=
"(Set langtools.tool.name to generate javadoc for a single tool)"
/>
...
@@ -196,26 +196,26 @@
...
@@ -196,26 +196,26 @@
<target
name=
"-show-javadoc"
/>
<target
name=
"-show-javadoc"
/>
</antcall>
</antcall>
</target>
</target>
<target
name=
"-show-javadoc"
if=
"netbeans.home"
>
<target
name=
"-show-javadoc"
if=
"netbeans.home"
>
<!-- what if doing javadoc for all? -->
<!-- what if doing javadoc for all? -->
<nbbrowse
file=
"${build.javadoc.dir}/${langtools.tool.name}/index.html"
/>
<nbbrowse
file=
"${build.javadoc.dir}/${langtools.tool.name}/index.html"
/>
</target>
</target>
<!-- Prompt for values. -->
<!-- Prompt for values. -->
<target
name=
"-get-tool-if-set"
depends=
"-def-select-tool"
>
<target
name=
"-get-tool-if-set"
depends=
"-def-select-tool"
>
<select-tool
<select-tool
toolproperty=
"langtools.tool.name"
toolproperty=
"langtools.tool.name"
propertyfile=
"${langtools.properties}"
propertyfile=
"${langtools.properties}"
askIfUnset=
"false"
askIfUnset=
"false"
/>
/>
</target>
</target>
<target
name=
"-get-tool-and-args"
depends=
"-def-select-tool"
>
<target
name=
"-get-tool-and-args"
depends=
"-def-select-tool"
>
<select-tool
<select-tool
toolproperty=
"langtools.tool.name"
toolproperty=
"langtools.tool.name"
argsproperty=
"langtools.tool.args"
argsproperty=
"langtools.tool.args"
propertyfile=
"${langtools.properties}"
propertyfile=
"${langtools.properties}"
askIfUnset=
"true"
askIfUnset=
"true"
/>
/>
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
</sequential>
</sequential>
</macrodef>
</macrodef>
</target>
</target>
<!-- Macro to start the debugger and set a property containg the args needed by the run task -->
<!-- Macro to start the debugger and set a property containg the args needed by the run task -->
<target
name=
"-def-start-debugger"
if=
"netbeans.home"
>
<target
name=
"-def-start-debugger"
if=
"netbeans.home"
>
<macrodef
name=
"start-debugger"
>
<macrodef
name=
"start-debugger"
>
...
@@ -251,28 +251,29 @@
...
@@ -251,28 +251,29 @@
<pathelement
location=
"${src.classes.dir}"
/>
<pathelement
location=
"${src.classes.dir}"
/>
</sourcepath>
</sourcepath>
</nbjpdastart>
</nbjpdastart>
<property
<property
name=
"@{jpda.jvmargs.property}"
name=
"@{jpda.jvmargs.property}"
value=
"-Xdebug -Xnoagent -Djava.compiler=none -Xrunjdwp:transport=dt_socket,address=${jpda.address}"
value=
"-Xdebug -Xnoagent -Djava.compiler=none -Xrunjdwp:transport=dt_socket,address=${jpda.address}"
/>
/>
</sequential>
</sequential>
</macrodef>
</macrodef>
</target>
</target>
<target
name=
"-def-select-tool"
>
<target
name=
"-def-select-tool"
>
<mkdir
dir=
"${build.toolclasses.dir}"
/>
<mkdir
dir=
"${build.toolclasses.dir}"
/>
<javac
srcdir=
"${make.tools.dir}/SelectTool"
<javac
srcdir=
"${make.tools.dir}/SelectTool"
destdir=
"${build.toolclasses.dir}/"
destdir=
"${build.toolclasses.dir}/"
classpath=
"${ant.home}/lib/ant.jar"
classpath=
"${ant.core.lib}"
debug=
"${javac.debug}"
includeantruntime=
"false"
debug=
"${javac.debug}"
debuglevel=
"${javac.debuglevel}"
>
debuglevel=
"${javac.debuglevel}"
>
<compilerarg
line=
"-Xlint"
/>
<compilerarg
line=
"-Xlint"
/>
</javac>
</javac>
<taskdef
name=
"select-tool"
<taskdef
name=
"select-tool"
classname=
"SelectToolTask"
classname=
"SelectToolTask"
classpath=
"${build.toolclasses.dir}/"
/>
classpath=
"${build.toolclasses.dir}/"
/>
</target>
</target>
<target
name=
"select-tool"
depends=
"-def-select-tool"
>
<target
name=
"select-tool"
depends=
"-def-select-tool"
>
<select-tool
propertyfile=
"${langtools.properties}"
/>
<select-tool
propertyfile=
"${langtools.properties}"
/>
</target>
</target>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录