Changeset 59

Show
Ignore:
Timestamp:
09/03/08 10:47:53 (4 months ago)
Author:
csongor
Message:

fixes #20

  • fixed some path creating issues in YFast ant task
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • yfast/trunk/build.xml

    r58 r59  
    66    </description> 
    77         
    8         <property name="version" value="0.0.3"/> 
     8        <property name="version" value="0.0.4"/> 
    99 
    1010        <target name="test" description="--> description"> 
  • yfast/trunk/src/com/euedge/yfast/tools/ant/YFast.java

    r57 r59  
    166166        try { 
    167167            File f = new File(propertyFile); 
    168             if (f.getParentFile() != null && !f.getParentFile().mkdirs()) { 
    169                 throw new BuildException("unable to create path for property file: " + propertyFile); 
     168            if (f.getParentFile() != null && !f.getParentFile().exists()) { 
     169                System.out.println("creating directory: " + f.getParentFile().getAbsolutePath()); 
     170                if (!f.getParentFile().mkdirs()) 
     171                    throw new BuildException("unable to create path for property file: " 
     172                            + propertyFile); 
    170173            } 
    171174            if (!f.exists())