ant

Ant with JUnit task - OutOfMemoryError

时光怂恿深爱的人放手 提交于 2019-12-11 03:47:23
问题 I have an interesting problem. I am using Ant which executes JUnit tests (test suite composed with 50 tests) via build.xml element. The problem is that I receive OutOfMemoryError. I have enlarged heap space using ANT_OPTS arguments but it did not help. When I execute the same test suite in Eclipse - everything is fine - memory is released thanks to GC. I think that this problem is related to Ant and its JUnit task. Maybe logging of the tests are the reason(but on the other hand I have

Unexpected top level exception: bad class file magic, in Android

孤者浪人 提交于 2019-12-11 03:29:55
问题 I am trying to compile my android program via command line, using ANT. And the code compiles fine. But when the target -dex is executed, I get the following error: [dex] input: /Users/aditya/Desktop/workspace/Java/Play/bin/classes [dex] input: /Library/Java/Android/tools/support/annotations.jar [dex] Using Pre-Dexed annotations-5bd0afe28d834ceff67df1063f0f145b.jar <- /Library/Java/Android/tools/support/annotations.jar [dex] Converting compiled files and external libraries into /Users/aditya

suppressing or not allowing the access time to be modified java

心不动则不痛 提交于 2019-12-11 03:27:47
问题 I'm writing a Java Class which extends Ant Zip Task to do a particular job for me. I want to create a zip file and once that file is created, I want to suppress the access time in the inode so I can't be modified or find a way to not let it change, even if the file is modified. The reason for that is I made a md5 hash which depends on the access time. Thus that's giving me a lot of trouble, and making the access time constant will solve my problem. Does someone now how would I accomplish that

appcompat v7 package does not exist

天涯浪子 提交于 2019-12-11 03:23:15
问题 Using tools 23.0.2 And latest SDK Using manual ant build. I've checked my xml resources for errors. I've run them through tidy and they are ok. I've cleaned the project. But still I'm getting errors trying to use appcompat v7 support library. here's where I have the appcompat_v7 library: $ ls ../sdk/extras/android/support/v7/appcompat/ AndroidManifest.xml build.xml libs proguard-project.txt README.txt src bin gen local.properties project.properties res And in my main project project

Cannot find class in classpath issue with TESTNG

跟風遠走 提交于 2019-12-11 03:22:37
问题 WE are integrating testng with our application, I created testng.xml and testngbuild.xml for ant build . While running ant build it is throwing Cannot find class in classpath:. Actually I tried many ways. But I am still hopeless. Even I tried copying manually .class file to my testng directory of the application. If you can do like this, It is throwing another exception as could not load .class file 回答1: Even I faced the same problem many a times. You can try below solutions which worked for

FlexUnit ANT task is hanging

心不动则不痛 提交于 2019-12-11 03:05:58
问题 I'm using the ANT task to run FlexUnit on a build server. When I run the Flex Unit Tests from the Flash Builder (4) it works fine. But when running from ANT it opens the default player (FireFox in my case), runs the FU successfully but never returns to the command line. Eventually I get a " java.util.concurrent.ExecutionException: Socket timeout waiting for flexunit report " exception because the FU never returns. What could be the problem? <flexunit swf="${APP_TEST_FILE_SWF}" toDir="${OUTPUT

Ant, Sonar - 0% code coverage

自作多情 提交于 2019-12-11 03:02:42
问题 I have problem with ant sonar task. This task end with success but don't run unit tests and don't show code coverage. Test task <target name="test" depends="....."> <path id="classpath"> <fileset dir="test/lib" includes="**/*.jar"/> <fileset dir="lib" includes="**/*.jar"/> <pathelement location="......."/> </path> <mkdir dir="build/tests"/> <javac srcdir="test/src" destdir="build/tests" includes="**/*.java" debug="${debug}" deprecation="${deprecation}" optimize="${optimize}" nowarn="${nowarn}

What does a single Dot (“.”) in Distribution Manifest.mf mean?

无人久伴 提交于 2019-12-11 02:58:50
问题 lately I got a bit confused concerning class-pathes in Manifest.mf-files. So what I want is to outsource some properties.files out of my distribution.jar and put them next to it without changing java-source-files. Following example: At this time I can open a properties-file like this: this.getClass().getClassLoader().getRessourceAsStream( "/config/jdbc.properties" ); The jdbc.properties are located in an eclipse sourcefolder called 'resources' with a package named 'config'. Now when I build

What and where is mdimport

余生长醉 提交于 2019-12-11 02:55:05
问题 Does anybody with weblogic portal knowledge know what jar file has the "mdimport" ant task definition. It's part of the build file created by the ant export script for wls10.0 but no longer works for 10.3. Any clue or ideas where to find the definition of this 回答1: You can find it here. your-portal-home"/workshop/com.bea.workshop.cmdline.ant.core_1.0.200.200906102316/workshop-antlib.jar 回答2: The mdimport task is defined in the xml file antlib.xml. This will be defined in a different jar file

How do I set ANT_OPTS under eclipse?

对着背影说爱祢 提交于 2019-12-11 02:38:05
问题 When I build an application with ant in eclipse . I met java.lang.OutOfMemoryError: Java heap space. How do I set ANT_OPTS under eclipse? Thanks. 回答1: When you right-click build.xml , select "Ant Build..." (with the ellipsis). This will bring up the run configuration dialog, and you'll be able to specify the memory arguments in the "JRE" tab. 来源: https://stackoverflow.com/questions/4156147/how-do-i-set-ant-opts-under-eclipse