Révision 989

tmp/org.txm.statsengine.r.core/src/org/txm/statsengine/r/core/InstallRUserPart.java (revision 989)
13 13
		File dir = new File(workspace.getLocation(), "R/libraries");
14 14
		dir.mkdirs();
15 15
		
16
		File scriptsDirectory = new File(workspace.getLocation(), "scripts/samples");
16
		File scriptsDirectory = new File(workspace.getLocation(), "scripts");
17 17
		scriptsDirectory.mkdirs();
18 18
		BundleUtils.copyFiles("org.txm.statsengine.r.core", "", "", "R/", scriptsDirectory);
19 19
		
tmp/org.txm.groovy.core/src/java/org/txm/groovy/core/InstallGroovyFiles.java (revision 989)
1 1
package org.txm.groovy.core;
2 2

  
3 3
import java.io.File;
4
import java.io.IOException;
4 5
import java.util.HashMap;
5 6

  
6 7
import org.txm.PostTXMHOMEInstallationStep;
7 8
import org.txm.objects.Workspace;
8 9
import org.txm.utils.BundleUtils;
9 10
import org.txm.utils.DeleteDir;
11
import org.txm.utils.io.FileCopy;
10 12

  
11 13
public class InstallGroovyFiles extends PostTXMHOMEInstallationStep {
12 14

  
......
14 16
	public boolean install(Workspace workspace) {
15 17
		File txmhomedir = workspace.getLocation();
16 18
		
17
		String createfolders[] = {"scripts", "scripts/lib", //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
18
				"scripts/macro", "scripts/user", "scripts/import"}; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
19
		String createfolders[] = {"scripts/groovy/lib", "scripts/groovy/user", "scripts/groovy/system"}; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
19 20
		
20 21
		for (String folder : createfolders) {
21 22
			new File(txmhomedir, folder).mkdirs();
22 23
		}
23
		File scriptsDirectory = new File(txmhomedir, "scripts");
24
		scriptsDirectory.mkdirs();
24
		File scriptsDirectory = new File(txmhomedir, "scripts/groovy");
25 25
		File userDirectory = new File(scriptsDirectory, "user");
26
		userDirectory.mkdirs();
27 26
		File systemDirectory = new File(scriptsDirectory, "system");
28
		systemDirectory.mkdirs();
29 27
		
30 28
		
31 29
		
......
71 69
		scriptsPackageDirectory.mkdirs();
72 70
		BundleUtils.copyFiles(bundle_id, "src/java/", "org/txm/importer/scripts", "", scriptsPackageDirectory);
73 71
		
72
		try {
73
			FileCopy.copyFiles(userDirectory, systemDirectory);
74
		} catch (IOException e) {
75
			// TODO Auto-generated catch block
76
			e.printStackTrace();
77
		}
78
		
74 79
		return scriptsDirectory.exists();
75 80
	}
76 81

  

Formats disponibles : Unified diff