Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Ant build error: Could not load definitions from resource

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am a newbie trying to define a taskdef in Ant's build.xml.
The idea is to run Proguard 7.0.1 in the Ant build.

In my build.xml code for Ant,


The error I got from running ant -buildfile build.xml is
[taskdef] Could not load definitions from resource C:/proguard.7.0.1-src/ant/src/proguard/ant/task.properties.It could not be found.

I confirmed that "task.properties" file is right at the location and I have no idea why it keeps saying it cannot be loaded.

Anyone can help?
 
Saloon Keeper
Posts: 13427
302
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, I can't help you with Ant, it's been a really long time since I last worked with it. I just wanted to ask you why you are working with Ant at all. Are you maintaining an old project?
 
Darack Chowansky
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:Sorry, I can't help you with Ant, it's been a really long time since I last worked with it. I just wanted to ask you why you are working with Ant at all. Are you maintaining an old project?


Yes. There is an old Ant script that I need to understand and reconfigure.
 
Darack Chowansky
Greenhorn
Posts: 10
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just to help someone who might have same problem as me...

The issue is that the classpath location should be the proguard jar file and the resource should be the path to the task.properties file in the jar file.

Another issue is that the proguard.jar for 7.0.1 does not contain the task.properties file and is corrected in....I believe 7.1.0.

so the working code should be something like


 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic