|
Hi Bernard, If you use output.dir.path=css-output-dir, SmartSprites will assume this path is relative to the current directory and generate the output there. SmartSprites does support absolute paths in output.dir.path, which is the simplest solution to your problem. I'm not too familiar with NetBeans, but maybe it somehow exposes some properties relating to the project the build file is run in? If so, you could modify build.xml to put that property as a prefix in the outputdir attribute of the smartsprites task. Thanks, Staszek Hi Stanislaw, We can ignore NetBeans for the moment. I have made a testcase with a simple script as follows. This should make it easier to see the problem. How to reproduce this without NetBeans:
The Windows script that I execute from an explorer window: @echo off Hi Bernard, Based on the documentation (I'm assuming you meant smartsprites.properties rather than build.xml?), where would you expect the css-output-dir to be created if you set output.dir.path=css-output-dir? S. Hi Stanislaw, My apologies, I think the last testcase hides the issue rather than pointing it out. It appears that output.dir.path is relative to the current directory of program execution. However, in ant build environments as used with IDEs etc., it is expected that paths are relative to the location of the build script. I think that ant instructions e.g. fileset work like this and make it really easy to conform with this standard. Here is a revised test case that shows the dilemma:
Best regards Bernard Ok, now I see your point, Bernard. In the short term, you could hack this on build.xml level by prefixing the paths with build.xml file location (see the diffs here: http://fisheye3.atlassian.com/browse/carrot2/labs/smartsprites/build-autonomous.xml?r1=3637&r2=3642 Hi Bernard, I've made the smartsprites task to follow Ant's convention of resolving relative paths against the location of the build.xml file. Now, SmartSprites should work correctly in NetBeans for you. Please let me know if it does. Download: http://download.csssprites.org/smartsprites-0.2.4-dev.zip Thanks for the report! S. Closing for the 0.2.4 release. |
|||||||||||||||||||||||||||||||||||||||||||||||||
Thanks for the report and detailed reproduction steps, Bernard! Scheduling for 0.2.4 for investigation.