Buggy code:
private , IContext context ) { } public static IProcessor getProcessor ( IProcess process , Property property ) { } private static boolean isCodeGenerationNeeded ( JobInfo jobInfo , boolean statistics , boolean trace ) { } private static boolean isFileExist ( IFile codeFile ) { } private static IProcessor generateCode ( IProcessor processor2 , JobInfo jobInfo , String selectedContextName , boolean statistics , boolean trace , boolean needContext , int option , IProgressMonitor progressMonitor ) throws ProcessorException { } private static void generatePigudfInfor ( JobInfo jobInfo , ProcessItem selectedProcessItem , IProcess currentProcess , IProcessor processor , Set < ModuleNeeded > neededLibraries ) throws ProcessorException { } private static void checkMetadataDynamic ( IProcess currentProcess , JobInfo jobInfo ) { } private static void generateBuildInfo ( JobInfo jobInfo , IProgressMonitor progressMonitor , boolean isMainJob , IProcess currentProcess , String currentJobName , IProcessor processor ) throws ProcessorException { } private static void generateSpringInfo ( JobInfo jobInfo , String selectedContextName , boolean statistics , boolean trace , boolean needContext , IProgressMonitor progressMonitor , IProcess currentProcess , String currentJobName , IProcessor processor ) throws ProcessorException { } private static void generateContextInfo ( JobInfo jobInfo , String selectedContextName , boolean statistics , boolean trace , boolean needContext , IProgressMonitor progressMonitor , IProcess currentProcess , String currentJobName , IProcessor processor ) throws ProcessorException { } private static IProcessor generateCode ( JobInfo jobInfo , String selectedContextName , boolean statistics , boolean trace , boolean needContext , int option , IProgressMonitor progressMonitor ) throws ProcessorException { } private static void generateJobInfo ( JobInfo jobInfo , boolean isMainJob , IProcess currentProcess , ProcessItem selectedProcessItem ) { } private static void generateNodeInfo ( JobInfo jobInfo , String selectedContextName , boolean statistics , boolean properties , int option , IProgressMonitor progressMonitor , IProcess currentProcess ) throws ProcessorException { } public static boolean checkIfContextExisted ( ProcessItem processItem , String selectedContextName ) { } private static void resetRunJobComponentParameterForContextApply ( JobInfo jobInfo , IProcess currentProcess , String selectedContextName ) { } static List < JobInfo > jobList = new ArrayList < JobInfo > ( ) ; static boolean exportAsOSGI = false ; public static IProcessor generateCode ( String processName , String contextName , String version , boolean statistics , boolean trace , IProgressMonitor ... monitors ) throws ProcessorException { } public static IProcessor generateCode ( String processId , String contextName , String version , boolean statistics , boolean trace , boolean applyContextToChildren , IProgressMonitor ... monitors ) throws ProcessorException { } public static IProcessor generateCode ( ProcessItem process , String contextName , boolean statistics , boolean trace , boolean applyContextToChildren , IProgressMonitor ... monitors ) throws ProcessorException { } public static IProcessor generateCode ( ProcessItem process , String contextName , String version , boolean statistics , boolean trace , boolean applyContextToChildren , boolean needContext , IProgressMonitor ... monitors ) throws ProcessorException { } public static IProcessor generateCode ( ProcessItem process , IContext context , String version , boolean statistics , boolean trace , boolean applyContextToChildren , IProgressMonitor ... monitors ) throws ProcessorException { } public static IProcessor generateCode ( ProcessItem process , String contextName , boolean statistics , boolean trace ) throws ProcessorException { } public static IProcessor generateCode ( IProcess process , IContext context , boolean statistics , boolean trace , boolean contextProperties , boolean applyToChildren ) throws ProcessorException { } public static IProcessor generateCode ( IProcess process , IContext context , boolean statistics , boolean trace , boolean properties ) throws ProcessorException { } public static IProcessor generateCode ( IProcess process , IContext context , boolean statistics , boolean trace , boolean properties , IProgressMonitor progressMonitor ) throws ProcessorException { } public static IProcessor generateCode ( IProcessor processor , IProcess process , IContext context , boolean statistics , boolean trace , boolean properties , IProgressMonitor progressMonitor ) throws ProcessorException { } public static IProcessor generateCode ( IProcess process , IContext context , boolean statistics , boolean trace , boolean properties , int option ) throws ProcessorException { } public static String [ ] getCommandLine ( boolean externalUse , String processName , String contextName , int statisticPort , int tracePort , String ... codeOptions ) throws ProcessorException { } public static String [ ] getCommandLine ( boolean externalUse , String processName , String contextName , String version , int statisticPort , int tracePort , String ... codeOptions ) throws ProcessorException { } public static String [ ] getCommandLine ( String targetPlatform , boolean externalUse , String processId , String contextName , int statisticPort , int tracePort , String ... codeOptions ) throws ProcessorException { } public static String [ ] getCommandLine ( String targetPlatform , boolean externalUse , String processId , String contextName , String version , int statisticPort , int tracePort , String ... codeOptions ) throws ProcessorException { } public static String [ ] getCommandLine ( String targetPlatform , boolean externalUse , ProcessItem processItem , String contextName , boolean needContext , int statisticPort , int tracePort , String ... codeOptions ) throws ProcessorException { } public static String [ ] getCommandLine ( String targetPlatform , boolean externalUse , IProcess currentProcess , String contextName , boolean needContext , int statisticPort , int tracePort , String ... codeOptions ) throws ProcessorException { } public static String [ ] getCommandLine ( String targetPlatform , boolean externalUse , IProcess currentProcess , Property property , String contextName , boolean needContext , int statisticPort , int tracePort , String ... codeOptions ) throws ProcessorException { } public static String [ ] getMainCommand ( String processName , String processVersion , String contextName , int statisticPort , int tracePort , String ... codeOptions ) throws ProcessorException { IProcess currentProcess = null ; ProcessItem selectedProcessItem = null ; selectedProcessItem = ItemCacheManager . getProcessItem ( processName , processVersion ) ; if ( selectedProcessItem != null ) { IDesignerCoreService service = CorePlugin . getDefault ( ) . getDesignerCoreService ( ) ; currentProcess = service . getProcessFromProcessItem ( selectedProcessItem ) ; } if ( currentProcess == null ) { return new String [ ] { } ; } IContext currentContext = ProcessorUtilities . getContext ( currentProcess , contextName ) ; IProcessor processor = ProcessorUtilities . getProcessor ( currentProcess , selectedProcessItem . getProperty ( ) , currentContext ) ; <START_BUG> String [ ] cmd = new String [ ] { processor . getCodePath ( ) . removeFirstSegments ( 1 ) . toString ( ) . replace ( "//" , "." ) } ; <END_BUG>

Fix:
String [ ] cmd = new String [ ] { processor . getMainClass ( ) } ;