title: Properties files not found running java through Ant
body: <p>the structure of the example project is: </p>
  
  <pre><code>.
  |-- ./build
  |   `-- ./build/TestAntLoadFile.class
  |-- ./build.xml
  |-- ./dist
  |   |-- ./dist/icpFinder.jar
  |   `-- ./dist/icp-finder.properties
  |-- ./icp-finder_bak.properties
  `-- ./src
      `-- ./src/TestAntLoadFile.java
  </code></pre>
  
  <p>and the code getting the properties file is: </p>
  
  <pre><code> public class TestAntLoadFile {
      private static final String CUSTOMER_CONFIG_FILE_NAME 
            = "icp-finder.properties";
  
      public static void main(String[] args) {
          InputStream custumerConfigIn = TestAntLoadFile.class.
                  getClassLoader().getResourceAsStream(CUSTOMER_CONFIG_FILE_NAME);
  
          System.out.println("custumerConfigIn: " + custumerConfigIn);
      }
  
   }
  </code></pre>
  
  <p>and build.xml core contend is : </p>
  
  <pre><code>    &lt;path id="run.classpath"&gt;
      &lt;fileset dir = "${dist.dir}" &gt;
          &lt;include name="**/*.jar"/&gt;
          &lt;include name="**/*.properties"/&gt;
          &lt;include name="./icp-finder.properties"/&gt;
      &lt;/fileset&gt;
  &lt;/path&gt;
  
  &lt;target name="run" depends="jar"&gt;
      &lt;java fork="true" classname="TestAntLoadFile"&gt;
          &lt;classpath&gt;
              &lt;path refid="run.classpath"/&gt;
          &lt;/classpath&gt;
  
      &lt;/java&gt;     
  &lt;/target&gt;
  </code></pre>
  
  <p>the project run well in eclipse, Has anybody got any suggestions?</p>