Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.2.3
-
Fix Version/s: 0.2.4
-
Component/s: None
-
Labels:None
Description
If the build.xml is executed with a current directory different from the directory of the build.xml file, then the output is not written as expected when output.dir.path is set.
This means that the smartsprites ant task cannot be easily integrated in some major existing build scripts e.g. build scripts of the NetBeans IDE.
How to reproduce this:
- Make a copy of the binary distribution
- In the NetBeans IDE (Version 6.7.1 RC), in the Favorites window, add the directory of the copy
- In the Favorites Window, expand the web.xml node
- Right click on the task "process" and select "Run Target"
- In Windows, go to the folder "C:\Program Files\NetBeans 6.7\bin". You should not see any output there as expected.
ok.
- Edit the file smartsprites.properties (right click, Edit), change output.dir.path=css-output-dir, css.file.suffix=
- Right click on the task "process" and select "Run Target"
- In Windows, go to the folder "C:\Program Files\NetBeans 6.7\bin". There is a new folder css-output-dir with images and css.
This is unexpected.
It is very good that the distribution contains the examples so reporting an issue is really easy. Many thanks!
Thanks for the report and detailed reproduction steps, Bernard! Scheduling for 0.2.4 for investigation.