SmartSprites

Add antlib taskdef file to the distribution JAR?

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 0.2.3
  • Component/s: None
  • Labels:
    None

Description

It would be nice to have the taskdef file inside SmartSprites JAR, so that one does not have to know the class name explicitly:

<antlib>
<taskdef name="smartsprites"
classname="org.carrot2.labs.smartsprites.ant.SmartSpritesTask" />
</antlib>

Activity

Hide
Stanisław Osiński added a comment -

Good idea, scheduled for next release.

Show
Stanisław Osiński added a comment - Good idea, scheduled for next release.
Hide
Stanisław Osiński added a comment -

Fixed in trunk.

Show
Stanisław Osiński added a comment - Fixed in trunk.
Hide
Philipp Rosenhagen added a comment -

Thank you for this additional feature.
Just want to note how to use it in a build.xml (using Eclipse as the IDE):

First make sure the smartsprites.jar is included in the ant runtime classpath (should be ok if you are using SmartSprites previously - just make sure you update it to version 0.2.3).
Then just add the following line to your build.xml:

<taskdef resource="smartsprites.xml" />

After that you can use the task as usual like:

<smartsprites ... />

You no longer need to define it in the build.xml like
<taskdef name="smartsprites" classpathref.... ></taskdef>

Show
Philipp Rosenhagen added a comment - Thank you for this additional feature. Just want to note how to use it in a build.xml (using Eclipse as the IDE): First make sure the smartsprites.jar is included in the ant runtime classpath (should be ok if you are using SmartSprites previously - just make sure you update it to version 0.2.3). Then just add the following line to your build.xml: <taskdef resource="smartsprites.xml" /> After that you can use the task as usual like: <smartsprites ... /> You no longer need to define it in the build.xml like <taskdef name="smartsprites" classpathref.... ></taskdef>
Hide
Stanisław Osiński added a comment -

Thanks for the tip, Philipp!

Show
Stanisław Osiński added a comment - Thanks for the tip, Philipp!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: