Maven reference folder in Build
<p>Hi this follows on from this question <a href="https://stackoverflow.com/questions/39991602/java-maven-reference-files-in-webapp">Java Maven reference files in WebApp</a></p>

<p>I'm attempting to copy a folder into the build directory (this is successful) I then attempt to run the application and copy that directory into a temp directory so I can make changes and zip it up into a Scorm package. </p>

<p>The folder is in the build as </p>

<blockquote>
  <p>C:\workspace\admin\target\admin-1.0-SNAPSHOT\resources\applications\scorm</p>
</blockquote>

<p>I'm trying to reference this from the running application as:</p>

<pre><code>    System.out.println(new File("applications/scorm").getAbsolutePath());

    File source = new File("applications/scorm");
    File dest = new File(Constants.TEMP_DIR_PATH + '/' + guideId);
    try {
        FileUtils.copyDirectory(source, dest);
        System.out.println("copy complete");
    } catch (IOException e) {
        e.printStackTrace();
    }
</code></pre>

<p>It never finds the file and my absolute path check gives me</p>

<blockquote>
  <p>C:\workspace\admin\applications\scorm\</p>
</blockquote>

<p>Which would indicate it's looking in the root directory. </p>

<p>How do I reference a file from the built application that is in the build directory? 
<a href="https://i.stack.imgur.com/MZ3oS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MZ3oS.png" alt="enter image description here"></a></p>

<p>i.e. the folder is in the root of the build directory under resources, what goes in here  <code>File source = new File("What is the file URL from the build directory?");</code> to reference that folder? </p>

<p>EDIT</p>

<p>This works </p>

<blockquote>
  <p>target/admin-1.0-SNAPSHOT/resources/applications/scorm</p>
</blockquote>

<p>But I doubt will work in production when it's deployed as a WAR file</p>