-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtodo.txt
62 lines (59 loc) · 1.72 KB
/
todo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Consider following stuff for automatically generating sequence diagrams from unit tests
<properties>
<jtraceOutputFolder>target/sequence-diagrams</jtraceOutputFolder>
</properties>
<profiles>
<profile>
<id>generate-sequence-diagrams</id>
<build>
<plugins>
<!--
Generera .sdx-filer (sekvensdiagram i textformat) för alla tester
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>
<!-- Important, following on one line! -->
-javaagent:${settings.localRepository}com/google/code/jtracert/0.1.1/jTracert-0.1.1.jar
-DanalyzerOutput=sdEditFileSystem
-DclassNameRegEx=com\.mycompany.*
-DoutputFolder=${jtraceOutputFolder}
</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.groovy.maven</groupId>
<artifactId>gmaven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source>
def dir = new File("$project.basedir/${jtraceOutputFolder}")
dir.eachFileRecurse{
if(!it.directory){
println "converting $it to png"
def fileName = it.path.replace(".sdx", ".png")
def proc = """java -Xms256M -Xmx1024M -jar
${settings.localRepository}net/sourceforge/sdedit/3.0.5/sdedit-3.0.5.jar
-o ${fileName}
-t png
$it"""
.execute()
proc.waitFor()
}
}
</source>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>