Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Svn Ant构建开源Buddi失败_Svn_Ant_Sourceforge - Fatal编程技术网

Svn Ant构建开源Buddi失败

Svn Ant构建开源Buddi失败,svn,ant,sourceforge,Svn,Ant,Sourceforge,我在构建Buddi会计开源软件时遇到了一个问题。请帮忙 我做了以下工作: svn公司 然后我进入工作区并执行构建步骤: 蚂蚁 但它给了我一个信息: compile: [mkdir] Created dir: /Users/LeoLi/Documents/UMD/Master Study/Fall 2012/CMSC737/Buddi-3.4.1.3.src/build/classes [javac] /Users/LeoLi/Documents/UMD/Master Study/Fall

我在构建Buddi会计开源软件时遇到了一个问题。请帮忙

我做了以下工作: svn公司

然后我进入工作区并执行构建步骤: 蚂蚁

但它给了我一个信息:

compile:
  [mkdir] Created dir: /Users/LeoLi/Documents/UMD/Master Study/Fall 2012/CMSC737/Buddi-3.4.1.3.src/build/classes
  [javac] /Users/LeoLi/Documents/UMD/Master Study/Fall 2012/CMSC737/Buddi-3.4.1.3.src/build.xml:473: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
  [javac] Compiling 252 source files to /Users/LeoLi/Documents/UMD/Master Study/Fall 2012/CMSC737/Buddi-3.4.1.3.src/build/classes
  [javac] /Users/LeoLi/Documents/UMD/Master Study/Fall 2012/CMSC737/Buddi-3.4.1.3.src/src/org/homeunix/thecave/buddi/Const.java:23: ?Ҳ???????
  [javac] ???ţ? ?? AccountBalance
  [javac] λ?ã? ?????? org.homeunix.thecave.buddi.plugin.builtin.report
  [javac] import org.homeunix.thecave.buddi.plugin.builtin.report.AccountBalance;
  [javac]                                                        ^
  [javac] /Users/LeoLi/Documents/UMD/Master Study/Fall 2012/CMSC737/Buddi-3.4.1.3.src/src/org/homeunix/thecave/buddi/Const.java:213: ?Ҳ???????
  [javac] ???ţ? ?? AccountBalance
  [javac] λ?ã? ?? org.homeunix.thecave.buddi.Const
  [javac]       AccountBalance.class.getCanonicalName(),
  [javac]       ^
  [javac] 2 ????
然后我试图在report目录中找到AccountBalance.java,毫不奇怪,那里没有这样的文件

也许我们需要在ant建立Buddi项目之前做点什么

更新:已下载版本1800,但编译时出现如下错误:

[javac] /var/lib/jenkins/jobs/Buddi/workspace/build.xml:473: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 252 source files to /var/lib/jenkins/jobs/Buddi/workspace/build/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
[javac] /var/lib/jenkins/jobs/Buddi/workspace/src/org/homeunix/thecave/buddi/view/dialogs/ScheduledTransactionEditorDialog.java:136: error: getType() in ScheduledTransactionEditorDialog cannot override getType() in Window
[javac]     public String getType(){
[javac]                   ^
[javac]   return type String is not compatible with Type
[javac] Note: /var/lib/jenkins/jobs/Buddi/workspace/src/org/homeunix/thecave/buddi/plugin/builtin/preference/PluginPreferences.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error
[javac] 1 warning

看起来像是一个弃用的API东西。以前,这个方法是受保护的,我已经将它更改为公共的。不确定如何解决此问题。

最新更改的作者忘记将文件添加到SVN。这是常有的事。在命令之后可以清楚地看到:

svn blame src/org/homeunix/thecave/buddi/Const.java
svn log -r1800:1801
你可以通知他。若要生成,请使用以前的版本,
1800

但是,当执行
windows
target时,我仍然存在问题。所以我做了

ant generic
java -jar build/Buddi-3.4.1.2.jar

谢谢。是的,我在1801版本中没有看到AccountBalance.java文件。我使用Ubuntu部署它,并将尝试1800。我只是尝试部署1800版本,但有一个编译错误指示:compile:javac-version的输出是什么?我成功地使用了从-Linux 32位版本下载的
JavaC1.6.0_24
。我也在Ubuntu上。我的javac版本是1.7.0_07,但是它在我的mac上工作,它的javac版本是1.6.0_22。我把它改回了1.6.0_24版本,但在使用ant generic构建1800版本时仍然失败。你能分享一些关于你如何建立这个的信息吗?谢谢。Leoooo,试试Oracle的版本。你的Ubuntu替代品可能无法正常使用
-source 1.5
选项。从ant generic cmd输出中,我看到了带有[javac]警告的行:[options]引导类路径未与-source 1.5一起设置。但在我的mac电脑上,ant generic很好用。不知道会发生什么。有什么帮助吗?