jawr-maven-plugin/src/main/java/net/jawr/maven/JawrMojo.java
/**
	 * Create the bundles.
	 * 
	 * @throws Exception if an exception occurs
	 */
Create the bundles.

@throws Exception if an exception occurs
Create the bundles . @throws Exception if an exception occurs
public void createBundles() throws Exception {
		File tempDir = new File(tempDirPath);
		if(!tempDir.exists()){
			tempDir.mkdirs();
		}else{
			FileUtils.cleanDirectory(tempDir);
		}
		File destDir = new File(destDirPath);
		if(!destDir.exists()){
			destDir.mkdirs();
		}else{
			FileUtils.cleanDirectory(destDir);
		}
		List<String> servlets = new ArrayList<String>();
		if(servletsToInitialize != null){
			String[] servletNames = servletsToInitialize.split(SERVLET_NAME_SEPARATOR);
			for (int i = 0; i < servletNames.length; i++) {
				servlets.add(servletNames[i].trim());
			}
		}
		BundleProcessor bundleProcessor = new BundleProcessor();
		bundleProcessor.process(rootPath, tempDirPath, destDirPath, springConfigFiles, servlets, generateCDNFiles, keepUrlMapping, servletAPIversion);
	}
public void createBundles ( ) throws Exception { File tempDir = new File ( tempDirPath ) ; if ( ! tempDir . exists ( ) ) { tempDir . mkdirs ( ) ; } else { FileUtils . cleanDirectory ( tempDir ) ; } File destDir = new File ( destDirPath ) ; if ( ! destDir . exists ( ) ) { destDir . mkdirs ( ) ; } else { FileUtils . cleanDirectory ( destDir ) ; } List < String > servlets = new ArrayList < String > ( ) ; if ( servletsToInitialize != null ) { String [ ] servletNames = servletsToInitialize . split ( SERVLET_NAME_SEPARATOR ) ; for ( int i = 0 ; i < servletNames . length ; i ++ ) { servlets . add ( servletNames [ i ] . trim ( ) ) ; } } BundleProcessor bundleProcessor = new BundleProcessor ( ) ; bundleProcessor . process ( rootPath , tempDirPath , destDirPath , springConfigFiles , servlets , generateCDNFiles , keepUrlMapping , servletAPIversion ) ; }
Create the bundles.
Create the bundles .