taskdef

testNG taskdef definition in Ant using Maven dependencies

◇◆丶佛笑我妖孽 提交于 2019-12-11 18:17:08
问题 I am trying to use Ant and Maven to build a project. I am using testNG for test units. As stated here ( http://testng.org/doc/ant.html ) I have defined the taskdef as follow: <taskdef resource="testngtasks" classpath="testng.jar"/> in Ant. In Maven I have added the following (as stated here: http://testng.org/doc/maven.html) <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.2</version> </dependency> Maven is getting the files from maven repository and I

AWS ECS - Docker Container exited with code 0

久未见 提交于 2019-12-11 17:56:54
问题 I am trying to start my docker containers using AWS ECS. When i run the task, i see the status as Pending and then immediately i see that my task status is in stopped. But when i try to run the same docker container manually by SSH into that box, i am able to start the container. I am not able to get my docker container up using the ECS agent. i also tried SSH into that box and looked at all the ECS logs which is not helpful in tracking down this issue. Here is what i did step by step Created

Intellij IDEA doesn't recognized XJC task attributes

耗尽温柔 提交于 2019-12-07 18:03:14
问题 I have an ant build.xml file with XJC task definition: <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask"> <classpath> <fileset dir="jaxb" includes="*.jar" /> </classpath> </taskdef> jaxb dir cotnains jaxb-xjc.jar with XJCTask class inside. Then I call xjc task in some target: <target name="mytarget"> <xjc target="src" package="com.p1.Person" header="false"> <schema dir="src/com/p1" includes="Person.xsd"/> </xjc> </target> Intellij IDEA doesn't recognize the structure/schema of the xjc

Problems with Ant optional tasks SSHExec and SCP. Classpath issue?

。_饼干妹妹 提交于 2019-12-06 13:30:59
问题 I'm in the process of modifying an Ant script (currently in use from within MyEclipse) to work from the command line. I'm doing this so anyone can check out the project and build it without MyEclipse. The problem I'm running into is that MyEclipse includes the dependencies behind the scenes. It does this by looking at the workspace's Ant configuration and compiling the classpath based on the selected libraries in the preferences dialog. Long story short, I need to take those dependencies and

Intellij IDEA doesn't recognized XJC task attributes

不打扰是莪最后的温柔 提交于 2019-12-06 03:18:35
I have an ant build.xml file with XJC task definition: <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask"> <classpath> <fileset dir="jaxb" includes="*.jar" /> </classpath> </taskdef> jaxb dir cotnains jaxb-xjc.jar with XJCTask class inside. Then I call xjc task in some target: <target name="mytarget"> <xjc target="src" package="com.p1.Person" header="false"> <schema dir="src/com/p1" includes="Person.xsd"/> </xjc> </target> Intellij IDEA doesn't recognize the structure/schema of the xjc call and highlights all attributes (target, package, header) and containing elements (schema) in red.

Classpath for taskdef?

拈花ヽ惹草 提交于 2019-12-05 16:36:02
问题 I am defining a new task in Ant. I exported it as a jar and added to my buildfile: <taskdef classname="X" classpath="Y.jar"/> The problem is that this fails at runtime. It tells me it didn't find the class. By adding the jar to the classpath, it is corrected. My question is: Is there a way that I can refer to my jar from the Ant buildfile, without changing the classpath? 回答1: If you know the path of your jar, inside ant script you can define the classpath for your own task. <taskdef name=

Problems with Ant optional tasks SSHExec and SCP. Classpath issue?

醉酒当歌 提交于 2019-12-04 20:17:17
I'm in the process of modifying an Ant script (currently in use from within MyEclipse) to work from the command line. I'm doing this so anyone can check out the project and build it without MyEclipse. The problem I'm running into is that MyEclipse includes the dependencies behind the scenes. It does this by looking at the workspace's Ant configuration and compiling the classpath based on the selected libraries in the preferences dialog. Long story short, I need to take those dependencies and make the script smart enough to include them on its own, without the help of MyEclipse. The tasks that

Classpath for taskdef?

◇◆丶佛笑我妖孽 提交于 2019-12-04 01:23:10
I am defining a new task in Ant. I exported it as a jar and added to my buildfile: <taskdef classname="X" classpath="Y.jar"/> The problem is that this fails at runtime. It tells me it didn't find the class. By adding the jar to the classpath, it is corrected. My question is: Is there a way that I can refer to my jar from the Ant buildfile, without changing the classpath? If you know the path of your jar, inside ant script you can define the classpath for your own task. <taskdef name="myTaskName" classname="com.myorg.myclass"> <classpath> <pathelement location="pathToMyJar.jar"/> </classpath> <