Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-01-07 07:27:24 -0500
committerEike Stepper2012-01-07 07:27:24 -0500
commitd3fbef1c0e1ce99dcc7571a430e36d1f45e5fc83 (patch)
tree577f119cacf663661461e819794276fb8ec62cac
parenta340df661b0510e48bae72dbbcc23a00e66d6032 (diff)
downloadcdo-d3fbef1c0e1ce99dcc7571a430e36d1f45e5fc83.tar.gz
cdo-d3fbef1c0e1ce99dcc7571a430e36d1f45e5fc83.tar.xz
cdo-d3fbef1c0e1ce99dcc7571a430e36d1f45e5fc83.zip
Fixed AssembleScripts
-rw-r--r--plugins/org.eclipse.emf.cdo.releng.doc/AssembleScripts.launch2
-rw-r--r--plugins/org.eclipse.emf.cdo.releng.doc/src/org/eclipse/emf/cdo/releng/doc/AssembleScripts.java6
2 files changed, 7 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.releng.doc/AssembleScripts.launch b/plugins/org.eclipse.emf.cdo.releng.doc/AssembleScripts.launch
index 7b52aef3ed..7c68801f7e 100644
--- a/plugins/org.eclipse.emf.cdo.releng.doc/AssembleScripts.launch
+++ b/plugins/org.eclipse.emf.cdo.releng.doc/AssembleScripts.launch
@@ -7,6 +7,6 @@
<listEntry value="1"/>
</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.emf.cdo.releng.doc.AssembleScripts"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="C:\develop\ws\cdo"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="C:\develop\git\cdo"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.emf.cdo.releng.doc"/>
</launchConfiguration>
diff --git a/plugins/org.eclipse.emf.cdo.releng.doc/src/org/eclipse/emf/cdo/releng/doc/AssembleScripts.java b/plugins/org.eclipse.emf.cdo.releng.doc/src/org/eclipse/emf/cdo/releng/doc/AssembleScripts.java
index 007fe96658..3dcf1abbe6 100644
--- a/plugins/org.eclipse.emf.cdo.releng.doc/src/org/eclipse/emf/cdo/releng/doc/AssembleScripts.java
+++ b/plugins/org.eclipse.emf.cdo.releng.doc/src/org/eclipse/emf/cdo/releng/doc/AssembleScripts.java
@@ -31,6 +31,7 @@ import java.io.BufferedWriter;
import java.io.CharArrayWriter;
import java.io.File;
import java.io.FileInputStream;
+import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
@@ -77,6 +78,11 @@ public class AssembleScripts
{
String workspacePath = args.length == 0 ? "../.." : args[0];
workspace = new File(workspacePath).getCanonicalFile();
+ if (!workspace.isDirectory())
+ {
+ throw new FileNotFoundException("Not a folder: " + workspacePath);
+ }
+
plugins = new File(workspace, "plugins");
releng = new File(plugins, "org.eclipse.emf.cdo.releng.doc");

Back to the top