ant

Cross-platform scripting with Jenkins

萝らか妹 提交于 2021-01-28 00:38:40
问题 I use Jenkins a lot within our organization, for building and deploying projects. I have a set of bash scripts fine-tuned to be modular and reusable for multiple projects. These are triggered by Jenkins during deploy jobs. The problem comes when the deployment environment changes from Linux to Windows. The bash scripts are no longer an option (installing cygwin on multiple/random deployment machines is also not an option). I could rewrite all the bash scripts in batch, but that would result

Class in jar not found at runtime, but was used to compile

佐手、 提交于 2021-01-27 14:51:59
问题 After I build this project from an ant file, I recieve a jar that contains all of the classes I built. When I try to run this jar, I get the following error: Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/j3d/SceneGraphObject This error indicates that a one of the jars, specifically the j3dcore.jar from java3d, I am using can not be found. However, this jar is on the classpath when compiling through the ant build into the class files. Why can this class not be found at

Class in jar not found at runtime, but was used to compile

半世苍凉 提交于 2021-01-27 14:37:01
问题 After I build this project from an ant file, I recieve a jar that contains all of the classes I built. When I try to run this jar, I get the following error: Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/j3d/SceneGraphObject This error indicates that a one of the jars, specifically the j3dcore.jar from java3d, I am using can not be found. However, this jar is on the classpath when compiling through the ant build into the class files. Why can this class not be found at

Untar / Unzip *.tar.xz with ANT

本秂侑毒 提交于 2021-01-27 07:23:34
问题 I want to extract a tarball-file with *.tar.xz with ant. But I can only find, bunzip2, gunzip, unzip and untar as goals in ant and none of it seems to work. So how can I expand a tarball-file with *.tar.xz with ant? 回答1: The XZ format is not supported by the default Ant distribution, you'll need the Apache Compress Antlib. Download the full Antlib with all the dependencies from here (add the three jars ant-compress , common-compress , xz in the lib directory of your ant), and use this task:

Untar / Unzip *.tar.xz with ANT

一世执手 提交于 2021-01-27 07:23:12
问题 I want to extract a tarball-file with *.tar.xz with ant. But I can only find, bunzip2, gunzip, unzip and untar as goals in ant and none of it seems to work. So how can I expand a tarball-file with *.tar.xz with ant? 回答1: The XZ format is not supported by the default Ant distribution, you'll need the Apache Compress Antlib. Download the full Antlib with all the dependencies from here (add the three jars ant-compress , common-compress , xz in the lib directory of your ant), and use this task:

Untar / Unzip *.tar.xz with ANT

我只是一个虾纸丫 提交于 2021-01-27 07:21:09
问题 I want to extract a tarball-file with *.tar.xz with ant. But I can only find, bunzip2, gunzip, unzip and untar as goals in ant and none of it seems to work. So how can I expand a tarball-file with *.tar.xz with ant? 回答1: The XZ format is not supported by the default Ant distribution, you'll need the Apache Compress Antlib. Download the full Antlib with all the dependencies from here (add the three jars ant-compress , common-compress , xz in the lib directory of your ant), and use this task:

renaming classes.jar to <project_name>.jar while building a library project in android ant

久未见 提交于 2021-01-27 07:18:41
问题 I have an android application project A which depends on an Android Library project B. when i import both the projects in Eclipse,I've notice the Eclipse Builder (probably due to the ADT plugin), that the library project gets compiled and built as b.jar and stored inside the bin\ folder of project B. It is referenced as b.jar in the classpath of A. But, while building it with ant,the command ant debug ,the library project B is compiled as classes.jar . Is there a way to rename this file as

Specifying desired packages for Gradle Javadoc task

蹲街弑〆低调 提交于 2021-01-27 04:40:30
问题 I'm trying to convert an ant build file to Gradle and I was wondering if there exists a way to specify which packages should be in the javadoc in the same way 'packagenames' works in ant? Thanks Jonathan 回答1: See the 'includes'/'excludes' properties, or related methods. The patterns use the same syntax as ant. javadoc { exclude "**/internal/**" } As another example, if the build process generates Java source files into a build directory, the Javadocs can be generated using: javadoc { source =

Ant: Malformed \uxxxx encoding in propertyfile task

戏子无情 提交于 2021-01-02 05:14:06
问题 I get the error below with an Ant skript I wrote. I already did some googling and found out, that the problem lies with strings containing \u, which happens under Windows because of the directory separator. I changed all those to / but the error remains. There are definitely no remaining \u strings in my script. java.lang.IllegalArgumentException: Malformed \uxxxx encoding. The error occurs when executing the propertyfile task, so I examined the file I want to change. This on the other hand

Ant: Malformed \uxxxx encoding in propertyfile task

China☆狼群 提交于 2021-01-02 05:13:26
问题 I get the error below with an Ant skript I wrote. I already did some googling and found out, that the problem lies with strings containing \u, which happens under Windows because of the directory separator. I changed all those to / but the error remains. There are definitely no remaining \u strings in my script. java.lang.IllegalArgumentException: Malformed \uxxxx encoding. The error occurs when executing the propertyfile task, so I examined the file I want to change. This on the other hand