Revision | b7d0ab0dc45294c31c53547b9819e9c4a0453ed7 (tree) |
---|---|
Zeit | 2018-01-08 21:45:05 |
Autor | shupeluter@hotmail.com <shupeluter@hotm...> |
Commiter | shupeluter@hotmail.com |
不要なテストリソースを削除
実行Jarを作成するための設定をpom.xmlに追加
@@ -0,0 +1,46 @@ | ||
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<actions> | |
3 | + <action> | |
4 | + <actionName>run</actionName> | |
5 | + <packagings> | |
6 | + <packaging>jar</packaging> | |
7 | + </packagings> | |
8 | + <goals> | |
9 | + <goal>process-classes</goal> | |
10 | + <goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal> | |
11 | + </goals> | |
12 | + <properties> | |
13 | + <exec.args>-classpath %classpath jp.co.nec.jsight.filecleaner.CleanerMainCUI src\test\resources</exec.args> | |
14 | + <exec.executable>java</exec.executable> | |
15 | + </properties> | |
16 | + </action> | |
17 | + <action> | |
18 | + <actionName>debug</actionName> | |
19 | + <packagings> | |
20 | + <packaging>jar</packaging> | |
21 | + </packagings> | |
22 | + <goals> | |
23 | + <goal>process-classes</goal> | |
24 | + <goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal> | |
25 | + </goals> | |
26 | + <properties> | |
27 | + <exec.args>-Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address} -classpath %classpath jp.co.nec.jsight.filecleaner.CleanerMainCUI src\test\resources</exec.args> | |
28 | + <exec.executable>java</exec.executable> | |
29 | + <jpda.listen>true</jpda.listen> | |
30 | + </properties> | |
31 | + </action> | |
32 | + <action> | |
33 | + <actionName>profile</actionName> | |
34 | + <packagings> | |
35 | + <packaging>jar</packaging> | |
36 | + </packagings> | |
37 | + <goals> | |
38 | + <goal>process-classes</goal> | |
39 | + <goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal> | |
40 | + </goals> | |
41 | + <properties> | |
42 | + <exec.args>-classpath %classpath jp.co.nec.jsight.filecleaner.CleanerMainCUI src\test\resources</exec.args> | |
43 | + <exec.executable>java</exec.executable> | |
44 | + </properties> | |
45 | + </action> | |
46 | + </actions> |
@@ -5,6 +5,42 @@ | ||
5 | 5 | <artifactId>FileCleaner</artifactId> |
6 | 6 | <version>1.0-SNAPSHOT</version> |
7 | 7 | <packaging>jar</packaging> |
8 | + <build> | |
9 | + <plugins> | |
10 | + <plugin> | |
11 | + <groupId>org.apache.maven.plugins</groupId> | |
12 | + <artifactId>maven-jar-plugin</artifactId> | |
13 | + <configuration> | |
14 | + <archive> | |
15 | + <manifest> | |
16 | + <addClasspath>true</addClasspath> | |
17 | + <classpathPrefix>lib</classpathPrefix> | |
18 | + <mainClass>jp.co.nec.jsight.filecleaner.CleanerMainCUI</mainClass> | |
19 | + </manifest> | |
20 | + </archive> | |
21 | + </configuration> | |
22 | + </plugin> | |
23 | + <plugin> | |
24 | + <groupId>org.apache.maven.plugins</groupId> | |
25 | + <artifactId>maven-dependency-plugin</artifactId> | |
26 | + <executions> | |
27 | + <execution> | |
28 | + <id>copy</id> | |
29 | + <phase>install</phase> | |
30 | + <goals> | |
31 | + <goal>copy-dependencies</goal> | |
32 | + </goals> | |
33 | + <configuration> | |
34 | + <outputDirectory> | |
35 | + ${project.build.directory}/lib | |
36 | + </outputDirectory> | |
37 | + </configuration> | |
38 | + </execution> | |
39 | + </executions> | |
40 | + </plugin> | |
41 | + </plugins> | |
42 | + </build> | |
43 | + | |
8 | 44 | <dependencies> |
9 | 45 | <dependency> |
10 | 46 | <groupId>stux</groupId> |
@@ -0,0 +1,9 @@ | ||
1 | +# To change this license header, choose License Headers in Project Properties. | |
2 | +# To change this template file, choose Tools | Templates | |
3 | +# and open the template in the editor. | |
4 | + | |
5 | +#\u7f6e\u63db\u5bfe\u8c61\u30ad\u30fc\u30ef\u30fc\u30c9 | |
6 | +rep.from=XX\u30c6\u30b9\u30c8,XX\u30c6\u30b9\u30c8\uff12,\u00d7\u00d7,xx | |
7 | +rep.to=\u3007\u3007\u30c6\u30b9\u30c8,\u3007\u3007\u30c6\u30b9\u30c8\uff12,\u3007\u3007,oo | |
8 | +rep.id=java,xls | |
9 | +rep.class=jp.co.nec.jsight.filecleaner.JavaCleaner,jp.co.nec.jsight.filecleaner.ExcelCleaner | |
\ No newline at end of file |
@@ -66,7 +66,7 @@ public class FileObjectScannerTest { | ||
66 | 66 | FileObjectScanner fos = new FileObjectScanner(target); |
67 | 67 | List<File> results = fos.getFiles(); |
68 | 68 | |
69 | - assertEquals(12,results.size() ); | |
69 | + assertEquals(3,results.size() ); | |
70 | 70 | |
71 | 71 | for(File file: results){ |
72 | 72 | System.out.println(file); |
@@ -56,7 +56,7 @@ public class ReplaceInfoManagerTest { | ||
56 | 56 | System.out.println("getReplaceStrs"); |
57 | 57 | ReplaceInfoManager instance = new ReplaceInfoManager(); |
58 | 58 | List result = instance.getReplaceStrs(); |
59 | - assertEquals(3, result.size()); | |
59 | + assertEquals(4, result.size()); | |
60 | 60 | } |
61 | 61 | |
62 | 62 | } |
@@ -1 +0,0 @@ | ||
1 | - |
@@ -1 +0,0 @@ | ||
1 | - |
@@ -1 +0,0 @@ | ||
1 | - |
@@ -1 +0,0 @@ | ||
1 | - |
@@ -1 +0,0 @@ | ||
1 | - |
@@ -1 +0,0 @@ | ||
1 | - |
@@ -17,8 +17,8 @@ public class Case3_4 { | ||
17 | 17 | |
18 | 18 | } |
19 | 19 | |
20 | - public void testxx(){ | |
21 | - //×× | |
20 | + public void testoo(){ | |
21 | + //�? | |
22 | 22 | } |
23 | 23 | } |
24 | 24 |
@@ -18,6 +18,6 @@ public class TestTarget1 { | ||
18 | 18 | } |
19 | 19 | |
20 | 20 | public void testoo(){ |
21 | - //×× | |
21 | + //×?? | |
22 | 22 | } |
23 | 23 | } |