2
我尝试刷新日食作为Powershell-script
的最后一步。我位于“.../My_Project”,而.xml文件位于“.../My_Project/base/cmd
”中。因此,最后一行是用脚本使用ant刷新Eclipse,找不到项目
C:\app\eclipse_juno_SR2\eclipse -nosplash -application org.eclipse.ant.core.antRunner -f .\base\cmd\refresh.xml -consolelog
而且剧本我用的是
<?xml version="1.0" encoding="UTF-8"?>
<project name="refresh_project" default="refresh" basedir="./../..">
<target name="refresh">
<eclipse.refreshLocal resource="/My_Project" depth="infinite"/>
</target>
</project>
,当我使用它在Eclipse中,构建工程,但使用它只是显示这个消息的脚本时:
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration
bundle was activated before the state location was initialized. Will retry aft
er the state location is initialized.
org.eclipse.m2e.logback.configuration: Logback config file: C:\Users\Dennis.Hert
el\workspace\.metadata\.plugins\org.eclipse.m2e.logback.configuration\logback.1.
3.0.20130129-0926.xml
org.eclipse.m2e.logback.configuration: Initializing logback
org.eclipse.m2e.logback.configuration: eclipse.consoleLog=true
Buildfile: .\base\cmd\refresh.xml
refresh:
[eclipse.refreshLocal] Warning: project /My_Project does not exist and cannot be
refreshed.
BUILD SUCCESSFUL
我试图
- 几个幻灯CTS
eclipse.convertPath fileSystemPath="/My_Project"
property="Test" fileSystemPath="/${workspace_loc}/My_Project"
fileSystemPath="/${workspace_loc:My_Project}"
fileSystemPath="/path/to/my/project/My_Project"
- 使用其他环境变量和使用
${Test}
作为资源
但它要么不展开变量(工作区)或抛出错误,因为路径无效(它不是)或没有任何变化
请原谅,如果这是一个愚蠢的问题,我正在工作几个小时,我从来没有用过蚂蚁,并希望我不像我想的那么愚蠢