jenkins 编译问题

zhaolixin007 2012-08-13 02:52:37
问题是这样的:
我故意将.java源码该了个错误,但jenkins 自动编译后,结果是编译通过,我很纳闷
现将源码剪切出来:
public int sub(int a, int b)
{
int result;
int i//少了一个分号
return result;
}


控制台输出:
Started by user zhaolixin
Building in workspace D:\jenkins\bat\workspace\Test_build_local_jenkins
没有接受许可之前不能够自动安装.
Checking out a fresh workspace because there's no workspace at D:\jenkins\bat\workspace\Test_build_local_jenkins
Cleaning local Directory .
Checking out https://zhaolx-sz.tclking.com:8443/svn/MyRepository/HelloAndriod
A hs_err_pid8072.log
A hs_err_pid6272.log
A hs_err_pid9228.log
A hs_err_pid8356.log
A .project
A hs_err_pid10212.log
A hs_err_pid8456.log
A hs_err_pid8296.log
A hs_err_pid9088.log
A src
A src\com
A src\com\example
A src\com\example\helloandriod
A src\com\example\helloandriod\MainActivity.java
A src\com\example\helloandriod\MainActivityTest.java
A src\com\example\helloandriod\MainActivityTest.java.bak
A build.xml
A reports
A .classpath
A project.properties
A assets
A hs_err_pid10796.log
A proguard-project.txt
A bin
A bin\AndroidManifest.xml
AU bin\resources.ap_
A bin\res
A bin\res\drawable-hdpi
AU bin\res\drawable-hdpi\ic_launcher.png
AU bin\res\drawable-hdpi\ic_action_search.png
A bin\res\drawable-ldpi
AU bin\res\drawable-ldpi\ic_launcher.png
A bin\res\drawable-mdpi
AU bin\res\drawable-mdpi\ic_launcher.png
AU bin\res\drawable-mdpi\ic_action_search.png
A bin\res\drawable-xhdpi
AU bin\res\drawable-xhdpi\ic_launcher.png
AU bin\res\drawable-xhdpi\ic_action_search.png
A bin\jarlist.cache
AU bin\classes.dex
A bin\classes
A bin\classes\com
A bin\classes\com\example
A bin\classes\com\example\helloandriod
AU bin\classes\com\example\helloandriod\R$string.class
AU bin\classes\com\example\helloandriod\R$attr.class
AU bin\classes\com\example\helloandriod\MainActivity.class
AU bin\classes\com\example\helloandriod\MainActivityTest.class
AU bin\classes\com\example\helloandriod\R.class
AU bin\classes\com\example\helloandriod\R$dimen.class
AU bin\classes\com\example\helloandriod\R$id.class
AU bin\classes\com\example\helloandriod\R$layout.class
AU bin\classes\com\example\helloandriod\BuildConfig.class
AU bin\classes\com\example\helloandriod\R$style.class
AU bin\classes\com\example\helloandriod\R$drawable.class
AU bin\classes\com\example\helloandriod\R$menu.class
AU bin\HelloAndriod.apk
A gen
A gen\com
A gen\com\example
A gen\com\example\helloandriod
A gen\com\example\helloandriod\R.java
A gen\com\example\helloandriod\BuildConfig.java
A AndroidManifest20120723bake.xml
AU ic_launcher-web.png
A hs_err_pid9212.log
A hs_err_pid8340.log
A hs_err_pid7532.log
A hs_err_pid10000.log
A hs_err_pid8328.log
A hs_err_pid10040.log
A hs_err_pid9156.log
A hs_err_pid7376.log
A hs_err_pid7692.log
A hs_err_pid8764.log
A hs_err_pid11432.log
A AndroidManifestbake.xml
A libs
AU libs\android-support-v4.jar
A res
A res\values
A res\values\styles.xml
A res\values\strings.xml
A res\values\dimens.xml
A res\drawable-hdpi
AU res\drawable-hdpi\ic_launcher.png
AU res\drawable-hdpi\ic_action_search.png
A res\menu
A res\menu\activity_main.xml
A res\drawable-ldpi
AU res\drawable-ldpi\ic_launcher.png
A res\values-large
A res\values-large\dimens.xml
A res\drawable-mdpi
AU res\drawable-mdpi\ic_launcher.png
AU res\drawable-mdpi\ic_action_search.png
A res\drawable-xhdpi
AU res\drawable-xhdpi\ic_launcher.png
AU res\drawable-xhdpi\ic_action_search.png
A res\layout
A res\layout\activity_main.xml
A hs_err_pid12064.log
A hs_err_pid8768.log
A hs_err_pid10168.log
A hs_err_pid11276.log
A AndroidManifest.xml.bak
A hs_err_pid1104.log
A hs_err_pid1340.log
A AndroidManifest.xml
A .settings
A .settings\org.eclipse.jdt.core.prefs
At revision 18
没有接受许可之前不能够自动安装.
Finished: SUCCESS

以下是我的build.xml


<?xml version="1.0" encoding="UTF-8"?>
<project name="MainActivity" default="help">

<!-- The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into
Version Control Systems. -->
<property file="local.properties" />

<!-- The ant.properties file can be created by you. It is only edited by the
'android' tool to add properties to it.
This is the place to change some Ant specific build properties.
Here are some properties you may want to change/update:

source.dir
The name of the source directory. Default is 'src'.
out.dir
The name of the output directory. Default is 'bin'.

For other overridable properties, look at the beginning of the rules
files in the SDK, at tools/ant/build.xml

Properties related to the SDK location or the project target should
be updated using the 'android' tool with the 'update' action.

This file is an integral part of the build system for your
application and should be checked into Version Control Systems.

-->
<property file="ant.properties" />

<!-- if sdk.dir was not set from one of the property file, then
get it from the ANDROID_HOME env var.
This must be done before we load project.properties since
the proguard config can use sdk.dir -->
<property environment="env" />
<condition property="sdk.dir" value="${env.ANDROID_HOME}">
<isset property="env.ANDROID_HOME" />
</condition>

<!-- The project.properties file is created and updated by the 'android'
tool, as well as ADT.

This contains project specific properties such as project target, and library
dependencies. Lower level build properties are stored in ant.properties
(or in .classpath for Eclipse projects).

This file is an integral part of the build system for your
application and should be checked into Version Control Systems. -->
<loadproperties srcFile="project.properties" />

<!-- quick check on sdk.dir -->
<fail
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
unless="sdk.dir"
/>

<!--
Import per project custom build rules if present at the root of the project.
This is the place to put custom intermediary targets such as:
-pre-build
-pre-compile
-post-compile (This is typically used for code obfuscation.
Compiled code location: ${out.classes.absolute.dir}
If this is not done in place, override ${out.dex.input.absolute.dir})
-post-package
-post-build
-pre-clean
-->
<import file="custom_rules.xml" optional="true" />

<!-- Import the actual build file.

To customize existing targets, there are two options:
- Customize only one target:
- copy/paste the target into this file, *before* the
<import> task.
- customize it to your needs.
- Customize the whole content of build.xml
- copy/paste the content of the rules files (minus the top node)
into this file, replacing the <import> task.
- customize to your needs.

***********************
****** IMPORTANT ******
***********************
In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
in order to avoid having your file be overridden by tools such as "android update project"
-->
<!-- version-tag: 1 -->
<import file="${sdk.dir}/tools/ant/build.xml" />

</project>

...全文
1921 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
shiguowen 2012-12-24
  • 打赏
  • 举报
回复
“没有接受许可之前不能够自动安装.”解决了吗,告诉我下!

23,404

社区成员

发帖
与我相关
我的任务
社区描述
Java 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧