Hi,
Hi,
Some news about this issue? Or an alternative?
Hi,
<span style=“font-size: 9pt; font-family: “Courier New”;”>Project proj = <span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;
color:navy”>new <span style=“font-size: 9pt; font-family: “Courier New”;”>Project(path + <span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;
color:green”>“Output_3000.xml”<span style=“font-size: 9pt; font-family: “Courier New”;”>);
Task task = proj.getRootTask().getChildren().getById(<span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;
color:blue”>20<span style=“font-size: 9pt; font-family: “Courier New”;”>);
<span style=“font-size: 9pt; font-family: “Courier New”;”>SimpleDateFormat DF_DDMMYYYY_HHMM = <span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;
color:navy”>new <span style=“font-size: 9pt; font-family: “Courier New”;”>SimpleDateFormat(<span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;
color:green”>“dd/MM/yyyy HH:mm”<span style=“font-size: 9pt; font-family: “Courier New”;”>);
<span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:
“Times New Roman”;color:navy”>try <span style=“font-size: 9pt; font-family: “Courier New”;”>{
task.set(Tsk.<span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;
color:#660E7A”>START<span style=“font-size: 9pt; font-family: “Courier New”;”>,
DF_DDMMYYYY_HHMM.parse(<span style=“font-size:9.0pt;font-family:“Courier New”;
mso-fareast-font-family:“Times New Roman”;color:green”>“01/01/2016
08:00”<span style=“font-size: 9pt; font-family: “Courier New”;”>));
} <span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:
“Times New Roman”;color:navy”>catch <span style=“font-size: 9pt; font-family: “Courier New”;”>(ParseException
e) {
e.printStackTrace();
}
<span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:
“Times New Roman”;color:gray”>/////////////////////////////////////////////////
<span style=“font-size: 9pt; font-family: “Courier New”;”>System.<span style=“font-size:9.0pt;
font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;color:#660E7A”>out<span style=“font-size: 9pt; font-family: “Courier New”;”>.println(<span style=“font-size:9.0pt;font-family:“Courier New”;
mso-fareast-font-family:“Times New Roman”;color:navy”>new <span style=“font-size: 9pt; font-family: “Courier New”;”>Timestamp(System.currentTimeMillis()) );
proj.recalculate();
System.<span style=“font-size:9.0pt;font-family:“Courier New”;
mso-fareast-font-family:“Times New Roman”;color:#660E7A”>out<span style=“font-size: 9pt; font-family: “Courier New”;”>.println(<span style=“font-size:9.0pt;font-family:“Courier New”;
mso-fareast-font-family:“Times New Roman”;color:navy”>new <span style=“font-size: 9pt; font-family: “Courier New”;”>Timestamp(System.currentTimeMillis()));
proj.save(path + <span style=“font-size:9.0pt;font-family:“Courier New”;
mso-fareast-font-family:“Times New Roman”;color:green”>“Output_3000_Changed.xml”<span style=“font-size: 9pt; font-family: “Courier New”;”>, SaveFileFormat.<span style=“font-size:9.0pt;
font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;color:#660E7A”>XML<span style=“font-size: 9pt; font-family: “Courier New”;”>);