Subversion Repositories SmartDukaan

Rev

Rev 2359 | Rev 2378 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2359 Rev 2372
Line 654... Line 654...
654
            }
654
            }
655
        } catch (Exception e) {
655
        } catch (Exception e) {
656
            e.printStackTrace();
656
            e.printStackTrace();
657
            return false;
657
            return false;
658
        }
658
        }
-
 
659
        
-
 
660
        // Push the content of one item to production 
-
 
661
        Process p;
-
 
662
		try {
-
 
663
			p = Runtime.getRuntime().exec( "/root/code/trunk/runutils/push-content-to-production.sh " + item.getCatalogItemId());
-
 
664
			p.waitFor();
-
 
665
		} catch (IOException e) {
-
 
666
			GWT.log("Not able to update content on production");
-
 
667
			e.printStackTrace();
-
 
668
			return false;
-
 
669
		} catch (InterruptedException e) {
-
 
670
			GWT.log("Not able to update content on production");
-
 
671
			e.printStackTrace();
-
 
672
			return false;
-
 
673
		} 
-
 
674
        
659
        return true;
675
        return true;
660
    }
676
    }
661
}
677
}
662
 
678
 
663
 
679