使用ant,我可以将文件从本地系统(Windows)复制到服务器( linux ).so,我需要的是使用ant在linux系统指定目录下按系统日期创建一个文件夹,并将该文件复制到创建的文件夹中。
这是我的蚂蚁剧本:
<sshexec host="hostname:22" username="****" trust="true"
password="fcubs"
command="mkdir $/home/desktop/<folder to be creted here>"/
我试图通过使用ant的无头linux服务器编译和发布一个android应用程序。我得到了以下错误:
BUILD FAILED
/opt/android-sdk-linux_x86/tools/ant/build.xml:653: The following error occurred while executing this line:
/opt/android-sdk-linux_x86/tools/ant/build.xml:698: null returned: 1
这是第698行:
proguardFile="${out.absolute.dir}/proguard.txt&
我已经在windows环境中设置了OpenSSH,并希望从Linux环境中调用ANT脚本。但是我得到了以下错误:
$ ant -f invoke.xml
Buildfile: /home/inysi/jpegu/cdt/tmp/invoke.xml
run:
[sshexec] Connecting to ******
[sshexec] cmd : ant -f build.xml
[sshexec] uname: not found
[sshexec] basename: not found
[sshexec] dirname: not found
[sshexec
我试图从Jenkins构建简单的android项目,但是生成失败的输出消息(详细):
Building in workspace /var/lib/jenkins/jobs/MyProj/workspace
[MyProj] $ ant -file build.xml help -v
Apache Ant version 1.8.1 compiled on October 13 2010
Buildfile: /home/ramps/MyProj/build.xml
Detected Java version: 1.6 in: /usr/lib/jvm/java-6-openjdk/jre
D
我正在我的linux计算机上安装Tomcat和Ant,但是在安装它们之前,我只需要检查它们是否已经安装了。
关于tomcat
我在我的机器上搜索了很多,并在下面的目录中搜索tomcat
/usr/local/, /opt/, /usr/share/
但是我没有在上面的任何路径中找到tomcat文件夹,它是否表明没有安装tomcat?所以实际上
1. what is the path to `look/find` exactly to know/check whether tomcat is installed or not in
all linux machines
2. what w
我找到了这个,但我不能在Ubuntu上构建安卓项目。当我尝试的时候:
$ ant debug
我得到了:
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk/lib/tools.jar
...
BUILD FAILED
/home/kuba/projects/Android/android-sdk-linux/tools/ant/build.xml:651: The following error occurred while executing this line:
/home/ku
我正在尝试在linux机器上使用ant构建android项目。这个项目在我的Mac机器上没有任何问题,但在linux机器上构建。似乎找不到原因!
我打字
ant release
然后,我收到了以下消息:
BUILD FAILED
/android/android-sdk-linux/tools/ant/build.xml:885: The following error occurred while executing this line:
/android/android-sdk-linux/tools/ant/build.xml:887: The following error occu
我有一个关于makefile的问题(这里没有讨论Linux或bash )。分号和双符号在make文件中的区别是什么?
在第一台计算机上,下列工作:
cd code; ant clean compile jar run
在第二台计算机上,上面的内容不起作用,而下面的计算机则起作用:
cd code && ant clean compile jar run
上面的代码位于名为"makefile“的文件中。我想知道“&”和“;”之间的区别。
谢谢
注意:我在第二台计算机上分号的错误消息是
cd code; ant clean compile jar run
The s
linux ::Opensuse 12.3 ::安装Apache
大家好!我想在cli中运行命令ant,但是它给了我一个错误:
Unable to locate tools.jar. Expected to find it in /usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/lib/tools.jar
Buildfile: build.xml does not exist! Build failed
我安装了java:
linux-s3z2:/srv/www/htdocs/cordova # java -version
java version "1.
当我试图通过ANT调用简单的JAR文件时。每当我执行时,我都会得到以下错误:
C:\temp\My\My_Ant.xml:20: Execute failed: java.io.IOException: Cannot run program "C:\PROGRA~1\Java\jre7\bin\java.exe -jar C:\temp\My\javatest.jar" (in directory "C:\temp\My"): CreateProcess error=2, The system cannot find the file specified
我正在编写一个脚本来自动编译java项目,并将ant用于该脚本。当我在bash中直接运行ant命令时,它正确地构建了项目。但是,如果我从shell脚本运行完全相同的命令,则会得到以下错误:
./build.sh: line 21: Apache: command not found
我的build.sh文件中的第21行是:
`ant clean build -v -buildfile $BUILDFILE`
在哪里$BUILDFILE=auto_build.xml。
我还在.bashrc $ANT_HOME中添加了ant文件夹的路径,其值为/usr/share/ant
ant -version
我正在尝试设置一个使用Java和OpenCL的程序。为此,我使用了JOCL的绑定。下面是我从Ant构建时得到的错误:
Error while loading native library "JOCL-linux-x86_64" with base name "JOCL"
Operating system name: Linux
Architecture : amd64
Architecture bit size: 64
Stack trace:
java.lang.UnsatisfiedLinkError: no JOCL-linux-x