@Controller
@RequestMapping("/proguardgui")
public class ProguardController {
@ResponseBody
@RequestMapping("exe.do")
public static void main(String a[], HttpServletRequest request) {
ProcessBuilder pb = new ProcessBuilder("java", "-jar", "proguardgui.jar");
UploadPath.attach_path="resources/lib/proguard5.3.2/lib/";
String path =UploadPath.path(request);
pb.directory(new File(path));
try {
Process p = pb.start();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
댓글 ( 4)
댓글 남기기