Skip to content

Commit 9c8fe17

Browse files
committed
It builds now, but no tests enabled yet.
- Removed maven-assembly-plugin, because no dependencies used. - JDBC changed a lot... - Tests need some serious changes (Junit upgrade).
1 parent 4351548 commit 9c8fe17

37 files changed

+8429
-6614
lines changed

pom.xml

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -70,28 +70,18 @@
7070
</configuration>
7171
</plugin>
7272
<plugin>
73-
<artifactId>maven-assembly-plugin</artifactId>
73+
<artifactId>maven-jar-plugin</artifactId>
7474
<version>3.1.0</version>
75-
<executions>
76-
<execution>
77-
<phase>package</phase>
78-
<goals>
79-
<goal>single</goal>
80-
</goals>
81-
<configuration>
82-
<archive>
83-
<manifest>
84-
<mainClass>smallsql</mainClass>
85-
</manifest>
86-
</archive>
87-
<descriptorRefs>
88-
<descriptorRef>jar-with-dependencies</descriptorRef>
89-
</descriptorRefs>
90-
</configuration>
91-
</execution>
92-
</executions>
75+
<configuration>
76+
<archive>
77+
<manifest>
78+
<addClasspath>true</addClasspath>
79+
<mainClass>smallsql.tools.CommandLine</mainClass>
80+
</manifest>
81+
</archive>
82+
</configuration>
9383
</plugin>
9484
</plugins>
9585
</build>
9686

97-
</project>
87+
</project>

src/main/java/smallsql/database/SQLToken.java

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,60 +6,59 @@
66
*
77
* Project Info: http://www.smallsql.de/
88
*
9-
* This library is free software; you can redistribute it and/or modify it
10-
* under the terms of the GNU Lesser General Public License as published by
11-
* the Free Software Foundation; either version 2.1 of the License, or
9+
* This library is free software; you can redistribute it and/or modify it
10+
* under the terms of the GNU Lesser General Public License as published by
11+
* the Free Software Foundation; either version 2.1 of the License, or
1212
* (at your option) any later version.
1313
*
14-
* This library is distributed in the hope that it will be useful, but
15-
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16-
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14+
* This library is distributed in the hope that it will be useful, but
15+
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16+
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
1717
* License for more details.
1818
*
1919
* You should have received a copy of the GNU Lesser General Public
2020
* License along with this library; if not, write to the Free Software
21-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
22-
* USA.
21+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
22+
* USA.
2323
*
24-
* [Java is a trademark or registered trademark of Sun Microsystems, Inc.
24+
* [Java is a trademark or registered trademark of Sun Microsystems, Inc.
2525
* in the United States and other countries.]
2626
*
2727
* ---------------
2828
* SQLToken.java
2929
* ---------------
3030
* Author: Volker Berlin
31-
*
31+
*
3232
*/
3333
package smallsql.database;
3434

3535
/**
3636
* @author Volker Berlin
37-
*
3837
*/
39-
class SQLToken{
40-
int value;
41-
int offset; // the start offset the token in the SQL string
42-
int length; // the length of the token
43-
String name;
38+
class SQLToken {
39+
int value;
40+
int offset; // the start offset the token in the SQL string
41+
int length; // the length of the token
42+
String name;
4443

45-
SQLToken (int value, int tokenStart, int tokenEnd){
46-
this.value = value;
47-
this.offset = tokenStart;
48-
this.length = tokenEnd-tokenStart;
49-
}
44+
SQLToken(int value, int tokenStart, int tokenEnd) {
45+
this.value = value;
46+
this.offset = tokenStart;
47+
this.length = tokenEnd - tokenStart;
48+
}
5049

51-
/**
52-
* Constructor used for quoted strings
53-
*/
54-
SQLToken (String name, int value, int tokenStart, int tokenEnd){
55-
this.value = value;
56-
this.offset = tokenStart;
57-
this.length = tokenEnd-tokenStart;
58-
this.name = name;
59-
}
50+
/**
51+
* Constructor used for quoted strings
52+
*/
53+
SQLToken(String name, int value, int tokenStart, int tokenEnd) {
54+
this.value = value;
55+
this.offset = tokenStart;
56+
this.length = tokenEnd - tokenStart;
57+
this.name = name;
58+
}
6059

61-
String getName(char[] sql){
62-
if(name != null) return name;
63-
return new String( sql, offset, length );
64-
}
60+
String getName(char[] sql) {
61+
if (name != null) return name;
62+
return new String(sql, offset, length);
63+
}
6564
}

0 commit comments

Comments
 (0)