1 package org.apache.maven.plugin.resources.remote.it.support;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.maven.it.VerificationException;
23 import org.apache.maven.it.Verifier;
24
25 import java.io.File;
26 import java.io.IOException;
27 import java.net.URISyntaxException;
28
29 public class BootstrapInstaller
30 {
31
32 private static boolean installed = false;
33
34 public static void install()
35 throws IOException, URISyntaxException, VerificationException
36 {
37 if ( !installed )
38 {
39 File bootstrapDir = TestUtils.getTestDir( "bootstrap" );
40
41 Verifier verifier = new Verifier( bootstrapDir.getAbsolutePath() );
42
43 verifier.executeGoal( "deploy" );
44
45 verifier.verifyErrorFreeLog();
46 verifier.resetStreams();
47
48 installed = true;
49 }
50 }
51
52 }