ant

Checking free space on FTP server

佐手、 提交于 2019-12-12 19:26:42
问题 I am running a build script in which three executable files (100mb each) are uploaded to an FTP server. The first upload can fail due to an FTP server space problem so our build process fails. This means I have to free some space from the server and run the build script again which is waste of time. I'd like to check the FTP size before uploading the exe to make sure space is there. If sufficient space is there then upload otherwise prompt user for input. How can I check the FTP size in an

Possible reasons for NoClassDefFoundError

六月ゝ 毕业季﹏ 提交于 2019-12-12 19:14:31
问题 I'm getting the following NoClassDefFoundError , which is weird because the class is already present in the library jar. Exception in thread "main" java.lang.NoClassDefFoundError: abc/test/Test.java at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:795) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:144) at java.net.URLClassLoader.defineClass(URLClassLoader.java:382) at java.net.URLClassLoader.access$100

Unable to get Emma Coverage for Android [duplicate]

回眸只為那壹抹淺笑 提交于 2019-12-12 19:12:42
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: generating code coverage report for android test project I am facing a problem in Emma Coverage for an Android Project. I am able to generate the build.xml for the Project and the Test Project. But when I run " ant coverage " I do get the following error: Buildfile: C:\Documents and Settings\user\workspace\HelloAndroidTest\build.xml BUILD FAILED Target "coverage" does not exist in the project

Is there a SVN Maven?

China☆狼群 提交于 2019-12-12 19:00:53
问题 Is there something for maven like http://subclipse.tigris.org/svnant.html ? Something to automate your project updates without having to click update? 回答1: The Maven SCM Plugin does support Subversion. Check the Usage page. 回答2: There is always the possibility to run ant inside maven. Ant is much more powerful than maven in many respects, but maven excels in dependency management and ease of deployment. So if you need the power of ant inside maven, use the maven antrun plugin: Taken from http

.exe file Failed due to exception in main class

风格不统一 提交于 2019-12-12 18:39:27
问题 I made an app using javafx and packaged it as exe file. It works fine being started from eclipse but being installed it says Failed due to exception in main class no matter what pc it was started at. I've found a few same questions but everyone found solution by themselves but don't tell how. One question has an answer: the issue were VM parameters I added in the build.xml in the fx:platform / fx:jvmarg section. These params were put into the package.cfg file which is called from the .exe

How to jar java source files from different (sub-)directories?

最后都变了- 提交于 2019-12-12 18:27:34
问题 Consider the following directory structure: ./source/com/mypackage/../A.java ./extensions/extension1/source/com/mypackage/../T.java ./extensions/extension2/source/com/mypackage/../U.java ... ./extensions/extensionN/source/com/mypackage/../Z.java I want to produce a source jar with the following contents: com/mypackage/../A.java com/mypackage/../T.java com/mypackage/../U.java ... com/mypackage/../Z.java I know I could use a fileset for each source directory. But is there an easy solution using

batch updating manifest.mf for existing jars using maven

独自空忆成欢 提交于 2019-12-12 18:24:13
问题 I would like to add a custom key/value pair to the MANIFEST.MF of several existing jar files in my war project (those jars are not the project dependencies). I already can pack/repack those jars using an ant task. I read about "manifest" task, how can I apply that task to a fileset (if there is a way)? Thanks in advance. 回答1: This is my first answer at StackOverflow. Hope it suits you :) I've done it like this: <target name="xxx.modifyManifests"> <echo message="Modifying jar manifests to add

Using the nested element module in cvs task in ant build.xml

蓝咒 提交于 2019-12-12 17:43:19
问题 I have problems connecting to CVS using ant build.xml. I figured out the reason was whitespaces in package attribute of CVS task as: <cvs cvsRoot=":pserver:user@xx.xxx.xxx.xx:/CVSREPO_CCP_MIG" dest="${basedir}" package="My Test Project"/> I learned from the ant website( http://ant.apache.org/manual/Tasks/cvs.html ) that we may Use a nested <module> element if you want to specify a module with spaces in its name. This specifies a package/module to work on, unlike the package attribute, modules

How to get the username of the last svn commit using ant?

笑着哭i 提交于 2019-12-12 17:13:51
问题 I would like to use Ant to get the username of the latest commit of a svn repository. how can i do this as cross-platform as possible? thanks! 回答1: So, here is example for "svnant": <path id="devlibs.path"> <fileset dir="devlib" includes="**/*.jar" /> </path> <typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="devlibs.path" /> <svnSetting id="svn.settings" svnkit="false" javahl="false" username="${svn.username}" password="${svn.password}" /> <target name="get-svn

How can I run ANT from a batch file without having an Environment Variable set?

こ雲淡風輕ζ 提交于 2019-12-12 17:05:42
问题 I want to include ANT, the JavaSDK and FlexSDK into my project directory. I need people in my company to be able to compile from source code. I have a build.bat file which starts with : ant blah/blah/blah But what if I want to run ANT directly without the system environment variable? If I remove these from the system ant is not recognised . I am a real newbie here, but I want to do something like this: start "${basedir}\libs\ant\bin" ant -lib ${basedir}/libs/ant/lib/flexTasks.jar pause This