Questions tagged [taskdef]

34 questions
18
votes
2 answers

How to configure Ivy for Ant build

I currently have ANT_HOME located at /home//ant/1.8.4/ant-1.8.4. I just downloaded the Apache Ivy tarball that includes its dependencies. I extracted it to /home//ivy/2.3.0-rc1/ivy-2.3.0-rc1. I then copied…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
11
votes
2 answers

Classpath for taskdef?

I am defining a new task in Ant. I exported it as a jar and added to my buildfile: 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…
computealot
  • 111
  • 1
  • 1
  • 4
11
votes
3 answers

Why cannot Ant taskdef cannot load a resource outside ./net

When declaring external ant tasks using taskdef, for instance ant-contrib, the proposed setup is to use the followin taskdef:
Ernelli
  • 3,960
  • 3
  • 28
  • 34
6
votes
4 answers

How can I provide a custom log4j.xml for different ant tasks?

I have a build file that as part of the build process relies on several taskdefs. These taskdef items (for example, webdoclet and jasper2) use log4j as a logger. Ideally, I'd like to be able to provide a different log4j configuration file for…
Eddie
  • 53,828
  • 22
  • 125
  • 145
6
votes
1 answer

What classpath do I need for an Ant taskdef?

I'm new to Ant. Can someone please tell me what value to put for the 'classpathref' for taskdef? Will it be the path of the class file? If yes can an example be given because I tried that and its not working for me.
TestUser
  • 501
  • 4
  • 7
  • 17
4
votes
2 answers

Groovy + Antbuilder: How to use Grape to with taskdef?

This is related to . I'm trying to dynamically add the maven-ant-tasks jars with Grape, simulating this:
Joshua Davis
  • 3,499
  • 1
  • 26
  • 29
4
votes
1 answer

Ant taskdef - running out of PermGen space

Using Ant tasks that create subprojects such as and may cause build failures when invoked repeatedly due to one of the following errors: java.lang.OutOfMemoryError: PermGen space java.lang.OutOfMemoryError: Java heap space The…
Christopher Peisert
  • 21,862
  • 3
  • 86
  • 117
3
votes
1 answer

Intellij IDEA doesn't recognized XJC task attributes

I have an ant build.xml file with XJC task definition: jaxb dir cotnains jaxb-xjc.jar with XJCTask class…
Vladimir
  • 4,782
  • 7
  • 35
  • 56
3
votes
3 answers

AWS ECS Task definition update

I'm setting up new services in ECS and have updated my task definition many times. When I do so, I need to edit the correspondent service and update the version to the latest. Is there a way to automatically update an AWS service with the latest…
3
votes
2 answers

Grails ant tasks don't work - Unable to start Grails: java.lang.reflect.InvocationTargetException

I'm having issues getting something which seems very basic running with Grails. I want to call grails commands from an Ant script - Grails provides a Grails task to achieve this. I have defined the Grails taskdef and classpaths as per the docs…
Jay Shark
  • 635
  • 1
  • 11
  • 21
3
votes
1 answer

Gradle : How to define a task that depend on an ant target

Hi if i list all tasks with gradle testGradle tasks -- all I see all imported ant tasks, but when i try to create my task that depends on an ant task, I am getting "Could not determine the dependencies of task ':testGradle'. the line that is a…
2
votes
0 answers

AWS ECS - Docker Container exited with code 0

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…
babs84
  • 421
  • 1
  • 10
  • 18
2
votes
1 answer

How to dynamically or pre-generate ansible variables from an existing file in a specific format for AWS ECS

I have a simple playbook which creates ECS Taskdefinition. example: #variable file, vars.yml --- containers: - name: nash-test essential: true image: nash-test memory: 256 portMappings: - containerPort: 8080 hostPort: 80 protocol:…
2
votes
1 answer

How can I run an ant task as a prerequisite to ?

I created my own ant task using the instructions here. In my ant script, I create the like this:
AWT
  • 3,657
  • 5
  • 32
  • 60
2
votes
4 answers

Writing my first Ant task: what am I missing?

I have read this article and used it to write my first Ant task called AutoTestTask: public class AutoTestTask extends org.apache.tools.ant.Task { // ... } I have also compiled and packaged this object into auto-test.jar. If my understanding of…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
1
2 3