// Path: src/main/java/com/dcp/sm/App.java
// public class App 
// {
//     public static void main( String[] args )
//     {
//     	if (args.length > 0) // Command Line Function
//         {
//             Out.setLogger(null);
//             Out.print(LOG_LEVEL.INFO, "Command Line compiling enabled");
//             Out.print(LOG_LEVEL.INFO, "Loading application...");
//             new Master();
//             
//             for (String s: args) {
//                 if (new File(s).exists() && s.endsWith(".dcp")) {
//                     Out.print(LOG_LEVEL.INFO, "Processing dcp file: " + s);
//                     System.out.println();
//                     
//                     Master.facade.process(s);// compile save file with izpack
//                 }
//                 else {
//                     Out.print(LOG_LEVEL.ERR, "Filepath doesn't exist or file is incorrect! Please give a valid path to a dcp save file.");
//                 }
//             }
//         }
//         else // GUI Application
//         {
//             // Apache Pivot bugfix for Java VM versions containing '_'
//             String javaVersionFix = System.getProperty("java.runtime.version").split("_")[0];
//             System.setProperty("java.vm.version", javaVersionFix);
//             Out.print(LOG_LEVEL.INFO, "Fixing Java version to v" + System.getProperty("java.vm.version"));
// 
//             DesktopApplicationContext.main(Master.class, args);
//         }
//     }
// }


import static org.junit.Assert.*;
import java.io.File;
import org.junit.Ignore;
import org.junit.Test;
import com.dcp.sm.App;
package com.dcp.setupmaker;





public class AppTest {

    @Ignore
	@Test
	public void testCL() {
		String[] args = {"saves/dcp.dcp"};
// Path: src/main/java/com/dcp/sm/App.java
// public class App 
// {
//     public static void main( String[] args )
//     {
//     	if (args.length > 0) // Command Line Function
//         {
//             Out.setLogger(null);
//             Out.print(LOG_LEVEL.INFO, "Command Line compiling enabled");
//             Out.print(LOG_LEVEL.INFO, "Loading application...");
//             new Master();
//             
//             for (String s: args) {
//                 if (new File(s).exists() && s.endsWith(".dcp")) {
//                     Out.print(LOG_LEVEL.INFO, "Processing dcp file: " + s);
//                     System.out.println();
//                     
//                     Master.facade.process(s);// compile save file with izpack
//                 }
//                 else {
//                     Out.print(LOG_LEVEL.ERR, "Filepath doesn't exist or file is incorrect! Please give a valid path to a dcp save file.");
//                 }
//             }
//         }
//         else // GUI Application
//         {
//             // Apache Pivot bugfix for Java VM versions containing '_'
//             String javaVersionFix = System.getProperty("java.runtime.version").split("_")[0];
//             System.setProperty("java.vm.version", javaVersionFix);
//             Out.print(LOG_LEVEL.INFO, "Fixing Java version to v" + System.getProperty("java.vm.version"));
// 
//             DesktopApplicationContext.main(Master.class, args);
//         }
//     }
// }


// Path: src/test/java/com/dcp/setupmaker/AppTest.java
import static org.junit.Assert.*;
import java.io.File;
import org.junit.Ignore;
import org.junit.Test;
import com.dcp.sm.App;

package com.dcp.setupmaker;





public class AppTest {

    @Ignore
	@Test
	public void testCL() {
		String[] args = {"saves/dcp.dcp"};
		App.main(args);