org.codehaus.mojo.jsimport
Class JsFileArtifactHandler

java.lang.Object
  extended by org.codehaus.mojo.jsimport.JsFileArtifactHandler

public class JsFileArtifactHandler
extends Object

Processes an artifact and makes available one or more files depending on whether the artifact points to a js file or a "-www.zip" file respectively.

Author:
Christopher Hunt

Constructor Summary
JsFileArtifactHandler(org.apache.maven.artifact.Artifact artifact, File targetFolder, File workFolder)
           
 
Method Summary
 File getExpansionFolder()
           
 List<File> getFiles()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsFileArtifactHandler

public JsFileArtifactHandler(org.apache.maven.artifact.Artifact artifact,
                             File targetFolder,
                             File workFolder)
                      throws IOException
Parameters:
artifact - the artifact to work with. It can either be for a JS file or a zip file with a classifier of "www".
targetFolder - the folder to merge non js files into.
workFolder - the folder to store any meta data that will help us do things like avoiding unnecessary unzips (given that it has been done before etc.).
Throws:
IOException - if something goes wrong, particularly in the course of zip file expansion.
Method Detail

getFiles

public List<File> getFiles()
Returns:
a list of the files that were found associated with the artifact.

getExpansionFolder

public File getExpansionFolder()
Returns:
the location where the files have been expanded to or null otherwise.


Copyright © 2010-2012 Codehaus. All Rights Reserved.