Skip to content

Commit dabfbb9

Browse files
committed
[Release] sbtools-vdviewer version 0.2
1 parent 0aa542c commit dabfbb9

File tree

3 files changed

+154
-122
lines changed

3 files changed

+154
-122
lines changed

sbtools-vdviewer/pom.xml

Lines changed: 152 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -1,123 +1,155 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2-
<modelVersion>4.0.0</modelVersion>
3-
<parent>
4-
<groupId>org.selfbus.development-tools</groupId>
5-
<artifactId>root</artifactId>
6-
<version>1.0-SNAPSHOT</version>
7-
<relativePath>..</relativePath>
8-
</parent>
9-
<artifactId>sbtools-vdviewer</artifactId>
10-
<name>sbtools-vdviewer</name>
11-
<description>A viewer for ETS product databases</description>
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
5+
<groupId>org.selfbus.development-tools</groupId>
6+
<artifactId>root</artifactId>
7+
<version>1.0-SNAPSHOT</version>
8+
</parent>
129

13-
<build>
14-
<!-- <finalName>${artifactId}</finalName> -->
15-
<plugins>
16-
<plugin>
17-
<artifactId>maven-compiler-plugin</artifactId>
18-
<configuration>
19-
<source>1.7</source>
20-
<target>1.7</target>
21-
<encoding>UTF-8</encoding>
22-
</configuration>
23-
</plugin>
24-
<plugin>
25-
<artifactId>maven-jar-plugin</artifactId>
26-
<version>2.3</version>
27-
<configuration>
28-
<finalName>sbtools-devtool</finalName>
29-
<archive>
30-
<manifest>
31-
<addClasspath>true</addClasspath>
32-
<mainClass>org.selfbus.sbtools.vdviewer.VdViewer</mainClass>
33-
</manifest>
34-
<manifestEntries>
35-
<Version>${project.version}</Version>
36-
</manifestEntries>
37-
</archive>
38-
</configuration>
39-
</plugin>
40-
<plugin>
41-
<artifactId>maven-assembly-plugin</artifactId>
42-
<version>2.4</version>
43-
<executions>
44-
<execution>
45-
<id>make zip</id>
46-
<phase>package</phase>
47-
<goals>
48-
<goal>single</goal>
49-
</goals>
50-
</execution>
51-
</executions>
52-
<configuration>
53-
<finalName>sbtools-vdviewer-${project.version}-${maven.build.timestamp}</finalName>
54-
<ignorePermissions>false</ignorePermissions>
55-
<appendAssemblyId>false</appendAssemblyId>
56-
<archive>
57-
<manifest>
58-
<mainClass>org.selfbus.sbtools.vdviewer.VdViewer</mainClass>
59-
</manifest>
60-
</archive>
61-
<descriptors>
62-
<descriptor>assembly.xml</descriptor>
63-
</descriptors>
64-
</configuration>
65-
</plugin>
66-
</plugins>
67-
</build>
10+
<artifactId>sbtools-vdviewer</artifactId>
11+
<version>0.2</version>
12+
<name>sbtools-vdviewer</name>
13+
<description>A viewer for ETS product databases</description>
6814

69-
<dependencies>
70-
<dependency>
71-
<groupId>org.selfbus.tools-libraries</groupId>
72-
<artifactId>sbtools-common</artifactId>
73-
<version>${tools-libraries.version}</version>
74-
</dependency>
75-
<dependency>
76-
<groupId>org.selfbus.tools-libraries</groupId>
77-
<artifactId>sbtools-common-gui</artifactId>
78-
<version>${tools-libraries.version}</version>
79-
</dependency>
80-
<dependency>
81-
<groupId>org.selfbus.tools-libraries</groupId>
82-
<artifactId>sbtools-vdio</artifactId>
83-
<version>${tools-libraries.version}</version>
84-
</dependency>
85-
<dependency>
86-
<groupId>org.apache.commons</groupId>
87-
<artifactId>commons-lang3</artifactId>
88-
</dependency>
89-
<dependency>
90-
<groupId>org.jdesktop</groupId>
91-
<artifactId>appframework</artifactId>
92-
</dependency>
93-
<dependency>
94-
<groupId>ch.qos.logback</groupId>
95-
<artifactId>logback-classic</artifactId>
96-
</dependency>
97-
<dependency>
98-
<groupId>com.jgoodies</groupId>
99-
<artifactId>jgoodies-binding</artifactId>
100-
<version>2.7.0</version>
101-
</dependency>
102-
<dependency>
103-
<groupId>com.jgoodies</groupId>
104-
<artifactId>jgoodies-forms</artifactId>
105-
<version>1.6.0</version>
106-
</dependency>
107-
<dependency>
108-
<groupId>com.jgoodies</groupId>
109-
<artifactId>jgoodies-looks</artifactId>
110-
<version>2.5.2</version>
111-
</dependency>
112-
<dependency>
113-
<groupId>com.jgoodies</groupId>
114-
<artifactId>jgoodies-validation</artifactId>
115-
<version>2.4.2</version>
116-
</dependency>
117-
<dependency>
118-
<groupId>junit</groupId>
119-
<artifactId>junit</artifactId>
120-
<scope>test</scope>
121-
</dependency>
122-
</dependencies>
15+
<properties>
16+
<mainClass>org.selfbus.sbtools.vdviewer.VdViewer</mainClass>
17+
</properties>
18+
19+
<build>
20+
<!-- <finalName>${artifactId}</finalName> -->
21+
<plugins>
22+
23+
<plugin>
24+
<artifactId>maven-jar-plugin</artifactId>
25+
<version>2.3</version>
26+
<configuration>
27+
<finalName>sbtools-devtool</finalName>
28+
<archive>
29+
<manifest>
30+
<addClasspath>true</addClasspath>
31+
<mainClass>${mainClass}</mainClass>
32+
</manifest>
33+
<manifestEntries>
34+
<Version>${project.version}</Version>
35+
</manifestEntries>
36+
</archive>
37+
</configuration>
38+
</plugin>
39+
40+
<plugin>
41+
<groupId>com.google.code.maven-replacer-plugin</groupId>
42+
<artifactId>replacer</artifactId>
43+
<version>1.5.2</version>
44+
<executions>
45+
<execution>
46+
<phase>prepare-package</phase>
47+
<goals>
48+
<goal>replace</goal>
49+
</goals>
50+
</execution>
51+
</executions>
52+
<configuration>
53+
<ignoreMissingFile>false</ignoreMissingFile>
54+
<includes>
55+
<include>src/main/scripts/*</include>
56+
</includes>
57+
<outputDir>target</outputDir>
58+
<preserveDir>false</preserveDir>
59+
<replacements>
60+
<replacement>
61+
<token>MAIN_CLASS</token>
62+
<value>${mainClass}</value>
63+
</replacement>
64+
<replacement>
65+
<token>MAIN_JAR</token>
66+
<value>${project.build.finalName}.jar</value>
67+
</replacement>
68+
</replacements>
69+
</configuration>
70+
</plugin>
71+
72+
<plugin>
73+
<artifactId>maven-assembly-plugin</artifactId>
74+
<version>2.4</version>
75+
<executions>
76+
<execution>
77+
<id>make zip</id>
78+
<phase>package</phase>
79+
<goals>
80+
<goal>single</goal>
81+
</goals>
82+
</execution>
83+
</executions>
84+
<configuration>
85+
<!-- <finalName>sbtools-vdviewer-${project.version}</finalName> -->
86+
<ignorePermissions>false</ignorePermissions>
87+
<appendAssemblyId>false</appendAssemblyId>
88+
<archive>
89+
<manifest>
90+
<mainClass>${mainClass}</mainClass>
91+
</manifest>
92+
</archive>
93+
<descriptors>
94+
<descriptor>assembly.xml</descriptor>
95+
</descriptors>
96+
</configuration>
97+
</plugin>
98+
</plugins>
99+
</build>
100+
101+
<dependencies>
102+
<dependency>
103+
<groupId>org.selfbus.tools-libraries</groupId>
104+
<artifactId>sbtools-common</artifactId>
105+
<version>${tools-libraries.version}</version>
106+
</dependency>
107+
<dependency>
108+
<groupId>org.selfbus.tools-libraries</groupId>
109+
<artifactId>sbtools-common-gui</artifactId>
110+
<version>${tools-libraries.version}</version>
111+
</dependency>
112+
<dependency>
113+
<groupId>org.selfbus.tools-libraries</groupId>
114+
<artifactId>sbtools-vdio</artifactId>
115+
<version>${tools-libraries.version}</version>
116+
</dependency>
117+
<dependency>
118+
<groupId>org.apache.commons</groupId>
119+
<artifactId>commons-lang3</artifactId>
120+
</dependency>
121+
<dependency>
122+
<groupId>org.jdesktop</groupId>
123+
<artifactId>appframework</artifactId>
124+
</dependency>
125+
<dependency>
126+
<groupId>ch.qos.logback</groupId>
127+
<artifactId>logback-classic</artifactId>
128+
</dependency>
129+
<dependency>
130+
<groupId>com.jgoodies</groupId>
131+
<artifactId>jgoodies-binding</artifactId>
132+
<version>2.7.0</version>
133+
</dependency>
134+
<dependency>
135+
<groupId>com.jgoodies</groupId>
136+
<artifactId>jgoodies-forms</artifactId>
137+
<version>1.6.0</version>
138+
</dependency>
139+
<dependency>
140+
<groupId>com.jgoodies</groupId>
141+
<artifactId>jgoodies-looks</artifactId>
142+
<version>2.5.2</version>
143+
</dependency>
144+
<dependency>
145+
<groupId>com.jgoodies</groupId>
146+
<artifactId>jgoodies-validation</artifactId>
147+
<version>2.4.2</version>
148+
</dependency>
149+
<dependency>
150+
<groupId>junit</groupId>
151+
<artifactId>junit</artifactId>
152+
<scope>test</scope>
153+
</dependency>
154+
</dependencies>
123155
</project>

sbtools-vdviewer/src/main/scripts/vdviewer.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ setlocal
33

44
cd libs
55
set CLASSPATH=%CLASSPATH%;.
6-
java -jar sbtools-vdviewer-0.2-SNAPSHOT.jar org.selfbus.sbtools.vdviewer.VdViewer
6+
java -jar MAIN_JAR MAIN_CLASS
77

88
if %ERRORLEVEL% neq 0 (
99
echo.

sbtools-vdviewer/src/main/scripts/vdviewer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ if [ -n "$topDir" ]; then
66
fi
77

88
set -x
9-
java -cp 'libs/*' -Dsun.java2d.xrender=True org.selfbus.sbtools.vdviewer.VdViewer $*
9+
java -cp 'libs/*' -Dsun.java2d.xrender=True MAIN_CLASS $*

0 commit comments

Comments
 (0)