* This class is written to process the files from Minerva output (disarchive first). Example of expected files: "182242-332341 - Abasdasfasf Lkasdjks - Feb 5, 2015 1200 AM - COMP251HW1.java"
* The idea is
* 1) to filter only java files with proper names in given folder.
* 2) to find collaborations and give mark them as well (does not affect anything)
* 3) to delete if any packages and put proper one
* 4) to copy files into src/heap/<folder> locations
"Program to process files from mierva output (disarchive first)\n"
+"Example of expected file: \"18246-33493 - Benjamin Lourtau - Feb 5, 2015 1200 AM - COMP251HW1.java\" "
+"Arguments:\n"
+"1) folder path (where student files are stored)\n"
+"2) file/problem name (in case of template - there should be a template file name that student file should have). Optional: default value = "+problemName+"\n."
+"3) regexp for minerva output file naming. Optional (is not recommended to change): default value = "+regexpMinervaFileName+"\n."
+"4) file extension. Optional: java. If you change 3rd argument - consider change this too if source code is not java."
+"\nThis program will create in src/heap folders for each student and put there <problemName>.java with proper package name."
);
System.exit(0);
}elseif(args.length>0){
for(inti=0,len=args.length;i<len;i++){
switch(i){
case0:// Folder Path
folderPath=args[i];
break;
case1:// problem name
problemName=args[i];
break;
case2:// regexp for minerva file output
regexpMinervaFileName=args[i];
break;
case3:// file extension
fileExtension=args[i];
break;
}
}
}else{
folderPath="/Users/AlexanderButyaev/Documents/workspace/COMP251/zip/Assignment 1 Download Feb 12, 2015 417 PM";
}
// relations between student and his/her collaboration group
// studentGroup is a list of people who will share the same mark afterwards.
// isStarted - about list of the students. if isStarted = true - there is at least 1 student in the group to get mark, otherwise name will come from the name of the file only