Class RepoHelper
- java.lang.Object
-
- org.apache.axis2.maven2.server.util.RepoHelper
-
public class RepoHelper extends Object
The Class RepoHelper is utility that deal with repo creation.- Since:
- 1.7.0
-
-
Constructor Summary
Constructors Constructor Description RepoHelper(String repoLocation, org.apache.maven.plugin.logging.Log log)
Instantiates a new repo helper.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
copyDirectory(File sourceLocation, File targetLocation, int bufferSize)
Copy directory.int
getDataBufferSize()
String
getJaxwsServiceSrcDir()
Gets the jaxws service src dir.String
getModuleSrcDir()
Gets the module src dir.String
getRepoLocation()
Gets the repo location.String
getServiceJarLocation()
Gets the service jar location.String
getStdServiceSrcDir()
Gets the std service src dir.boolean
isJaxwsService()
Checks if is jaxws service.void
prepareRepostory()
Prepare repostory.void
setDataBufferSize(int dataBufferSize)
void
setJaxwsService(boolean jaxwsService)
Sets the jaxws service.void
setJaxwsServiceSrcDir(String jaxwsServiceSrcDir)
Sets the jaxws service src dir.void
setModuleSrcDir(String moduleSrcDir)
Sets the module src dir.void
setRepoLocation(String repoLocation)
Sets the repo location.void
setServiceJarLocation(String serviceJarLocation)
Sets the service jar location.void
setStdServiceSrcDir(String stdServiceSrcDir)
Sets the std service src dir.
-
-
-
Constructor Detail
-
RepoHelper
public RepoHelper(String repoLocation, org.apache.maven.plugin.logging.Log log)
Instantiates a new repo helper.- Parameters:
repoLocation
- the repo locationlog
-
-
-
Method Detail
-
getDataBufferSize
public int getDataBufferSize()
-
setDataBufferSize
public void setDataBufferSize(int dataBufferSize)
-
getModuleSrcDir
public String getModuleSrcDir()
Gets the module src dir.- Returns:
- the module src dir
-
setModuleSrcDir
public void setModuleSrcDir(String moduleSrcDir)
Sets the module src dir.- Parameters:
moduleSrcDir
- the new module src dir
-
getRepoLocation
public String getRepoLocation()
Gets the repo location.- Returns:
- the repo location
-
setRepoLocation
public void setRepoLocation(String repoLocation)
Sets the repo location.- Parameters:
repoLocation
- the new repo location
-
getStdServiceSrcDir
public String getStdServiceSrcDir()
Gets the std service src dir.- Returns:
- the std service src dir
-
setStdServiceSrcDir
public void setStdServiceSrcDir(String stdServiceSrcDir)
Sets the std service src dir.- Parameters:
stdServiceSrcDir
- the new std service src dir
-
getJaxwsServiceSrcDir
public String getJaxwsServiceSrcDir()
Gets the jaxws service src dir.- Returns:
- the jaxws service src dir
-
setJaxwsServiceSrcDir
public void setJaxwsServiceSrcDir(String jaxwsServiceSrcDir)
Sets the jaxws service src dir.- Parameters:
jaxwsServiceSrcDir
- the new jaxws service src dir
-
isJaxwsService
public boolean isJaxwsService()
Checks if is jaxws service.- Returns:
- true, if is jaxws service
-
setJaxwsService
public void setJaxwsService(boolean jaxwsService)
Sets the jaxws service.- Parameters:
jaxwsService
- the new jaxws service
-
getServiceJarLocation
public String getServiceJarLocation()
Gets the service jar location.- Returns:
- the service jar location
-
setServiceJarLocation
public void setServiceJarLocation(String serviceJarLocation)
Sets the service jar location.- Parameters:
serviceJarLocation
- the new service jar location
-
prepareRepostory
public void prepareRepostory() throws IOException
Prepare repostory.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
copyDirectory
public static void copyDirectory(File sourceLocation, File targetLocation, int bufferSize) throws IOException
Copy directory.- Parameters:
sourceLocation
- the source locationtargetLocation
- the target locationbufferSize
-- Throws:
IOException
- Signals that an I/O exception has occurred.
-
-