// Path: org.eclipselabs.plugindependencies.core/src/org/eclipselabs/plugindependencies/core/CommandLineInterpreter.java
// public static final int RC_OK = 0;
// 
// Path: org.eclipselabs.plugindependencies.core/src/org/eclipselabs/plugindependencies/core/CommandLineInterpreter.java
// public static final int RC_RUNTIME_ERROR = -1;


import static org.eclipselabs.plugindependencies.core.CommandLineInterpreter.RC_OK;
import static org.eclipselabs.plugindependencies.core.CommandLineInterpreter.RC_RUNTIME_ERROR;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;
                    + " The plugins are written in the file as canonical paths.";
            Logging.writeStandardOut(help);
        }
    },

    GenerateBuildFile("-generateBuildFile", true) {
        @Override
        int handle(CommandLineInterpreter cli, List<String> args) {
            if(args.size() > 1) {
                OutputCreator.setTargetFolder(args.get(1));
            }
            return cli.generateBuildFile(args.get(0));
        }

        @Override
        void printHelp(String arg) {
            String help = "-generateBuildFile sourceFolder [targetFolder]"
                    + "\t\t"
                    + "Generates the build file with all classpaths of the specified plugin."
                    + " Optionally path to the extra plugins directory can be specified with targetFolder."
                    + " Generated file is saved in the plugin folder."
                    + " Eclipse root and bundle version have to be set before.";
            Logging.writeStandardOut(help);
        }
    },

    GenerateAllBuildFiles("-generateAllBuild", true) {
        @Override
        int handle(CommandLineInterpreter cli, List<String> args) {
            if(args.size() > 1) {
// Path: org.eclipselabs.plugindependencies.core/src/org/eclipselabs/plugindependencies/core/CommandLineInterpreter.java
// public static final int RC_OK = 0;
// 
// Path: org.eclipselabs.plugindependencies.core/src/org/eclipselabs/plugindependencies/core/CommandLineInterpreter.java
// public static final int RC_RUNTIME_ERROR = -1;


// Path: org.eclipselabs.plugindependencies.core/src/org/eclipselabs/plugindependencies/core/Options.java
import static org.eclipselabs.plugindependencies.core.CommandLineInterpreter.RC_OK;
import static org.eclipselabs.plugindependencies.core.CommandLineInterpreter.RC_RUNTIME_ERROR;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;

                    + " The plugins are written in the file as canonical paths.";
            Logging.writeStandardOut(help);
        }
    },

    GenerateBuildFile("-generateBuildFile", true) {
        @Override
        int handle(CommandLineInterpreter cli, List<String> args) {
            if(args.size() > 1) {
                OutputCreator.setTargetFolder(args.get(1));
            }
            return cli.generateBuildFile(args.get(0));
        }

        @Override
        void printHelp(String arg) {
            String help = "-generateBuildFile sourceFolder [targetFolder]"
                    + "\t\t"
                    + "Generates the build file with all classpaths of the specified plugin."
                    + " Optionally path to the extra plugins directory can be specified with targetFolder."
                    + " Generated file is saved in the plugin folder."
                    + " Eclipse root and bundle version have to be set before.";
            Logging.writeStandardOut(help);
        }
    },

    GenerateAllBuildFiles("-generateAllBuild", true) {
        @Override
        int handle(CommandLineInterpreter cli, List<String> args) {
            if(args.size() > 1) {
                OutputCreator.setTargetFolder(args.get(1));