Trying to override old definition of task javac Error

简介:

最近在看pentaho-ce-5.1的源代码,用ant进行编辑的时候总是出错

1
Trying to override old definition of task javac Error

修改以前的内容

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<? xml  version = "1.0"  ?>
< project  name = "HelloWorld"  default = "compress" >
     < presetdef  name = "javac" >
             < javac  includeantruntime = "false"  />
     </ presetdef >
     < target  name = "init" >
         < mkdir  dir = "build/classes"  />
         < mkdir  dir = "dist"  />
     </ target >
     < target  name = "compile"  depends = "init" >
         < javac  srcdir = "src"  destdir = "build/classes" />
     </ target >
     < target  name = "compress"  depends = "compile" >
             < jar  destfile = "dist/sample.jar"  basedir = "build/classes"  />
     </ target >
     < target  name = "execute"  depends = "compile" >
         < java  classname = "src"  classpath = "build/classes"  />
     </ target >
     < target  name = "clean" >
     </ target >
</ project >

修改以后的内容

1
2
3
< presetdef  name = "my.javac" >
             < javac  includeantruntime = "false"  />
     </ presetdef >

看到了,主要是将javac改成了my.javac



本文转自sucre03 51CTO博客,原文链接:http://blog.51cto.com/sucre/1408196,如需转载请自行联系原作者

相关文章
|
4月前
|
并行计算 Linux C语言
【Deepin 20系统】解决Error: unsupported compiler: 8.3.0. Use --override to override this check.
本文介绍了在Deepin 20系统中解决安装CUDA 10.0时遇到的GCC版本不支持问题的具体步骤。
50 2
|
7月前
Could not find method debug()
Could not find method debug()
256 59
|
6月前
|
Java Spring
【已解决】Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception .lang.NullPointerEx
【已解决】Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception .lang.NullPointerEx
88 0
|
Java Maven Android开发
成功解决FATAL ERROR in native method: JDWP on getting class status, jvmtiError=JVMTI_ERROR_WRONG_PHASE
成功解决FATAL ERROR in native method: JDWP on getting class status, jvmtiError=JVMTI_ERROR_WRONG_PHASE
|
7月前
|
Java 应用服务中间件
完美解决tomcat启动异常:Invalid byte tag in constant pool: 19;Unable to process Jar entry [module-info.class]
完美解决tomcat启动异常:Invalid byte tag in constant pool: 19;Unable to process Jar entry [module-info.class]
1295 0
|
Java
Java Error: The public type HelloWorld must be defined in its own file
Java Error: The public type HelloWorld must be defined in its own file
171 0
|
消息中间件 Java RocketMQ
【Java】Error creating bean with name ‘functionBindingRegistrar‘ defined in class path resource的一种解决方式
【Java】Error creating bean with name ‘functionBindingRegistrar‘ defined in class path resource的一种解决方式
149 0
|
Oracle Java 关系型数据库
JDK/JAVA Exception NSWindow drag regions should only be invalidated on the Main Thread
JDK/JAVA Exception NSWindow drag regions should only be invalidated on the Main Thread
153 0
四十二、 ERROR org.apache.pig.Main - ERROR 2998: Unhandled internal error. Found class jline.Terminal
四十二、 ERROR org.apache.pig.Main - ERROR 2998: Unhandled internal error. Found class jline.Terminal
四十二、 ERROR org.apache.pig.Main - ERROR 2998: Unhandled internal error. Found class jline.Terminal