diff options
author | Tomas O'Connor <toconnor@openoffice.org> | 2003-01-21 15:20:09 +0000 |
---|---|---|
committer | Tomas O'Connor <toconnor@openoffice.org> | 2003-01-21 15:20:09 +0000 |
commit | 3dda2aa2091f8c72759e9af6e325bc9466bdaadc (patch) | |
tree | 4fa1f7426c3f29de5423d066b0f6b4e0ea586ef6 /scripting/workben/installer/XmlUpdater.java | |
parent | 381461cddcd34910ac8128cb8a5826919e033c8d (diff) |
IssueZilla 10518 - Add BeanShell scripting support
Diffstat (limited to 'scripting/workben/installer/XmlUpdater.java')
-rw-r--r-- | scripting/workben/installer/XmlUpdater.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripting/workben/installer/XmlUpdater.java b/scripting/workben/installer/XmlUpdater.java index 04c77adbe890..d2544e90aa27 100644 --- a/scripting/workben/installer/XmlUpdater.java +++ b/scripting/workben/installer/XmlUpdater.java @@ -155,9 +155,14 @@ public class XmlUpdater extends Thread { File scriptsDir = new File( scriptsPath ); File highlightDir = new File( scriptsPath+"Highlight" ); File memoryDir = new File( scriptsPath+"MemoryUsage" ); + File bshDir = new File( scriptsPath+"InteractiveBeanShell" ); if( !highlightDir.mkdirs() ) { System.out.println( "Highlight script directory failed"); } + if( !bshDir.mkdirs() ) + { + System.out.println( "InteractiveBeanShell script directory failed"); + } if( !memoryDir.mkdirs() ) { System.out.println( "MemoryUsage script directory failed"); @@ -269,6 +274,23 @@ public class XmlUpdater extends Thread { System.out.println( "MemoryUsage script already deployed" ); } + File script = new File( scriptsPath+File.separator+"InteractiveBeanShell"+File.separator+"interactive.bsh" ); + if( !script.exists() ) { + if (!zd.extractEntry("examples/InteractiveBeanShell/interactive.bsh",scriptsPath+File.separator+"InteractiveBeanShell"+File.separator, statusLabel)) + { + onInstallComplete(); + return; + } + if (!zd.extractEntry("examples/InteractiveBeanShell/parcel-descriptor.xml",scriptsPath+File.separator+"InteractiveBeanShell"+File.separator, statusLabel)) + { + onInstallComplete(); + return; + } + } + else { + System.out.println( "InteractiveBeanShell script already deployed" ); + } + // Robert Kinsella test 2 end //-------------------------------- |