Skip to content

Commit dd23f27

Browse files
committed
removed problematic profile "check.sources" activation, excluded generated-sources, included test-sources
1 parent 759e751 commit dd23f27

File tree

5 files changed

+48
-43
lines changed

5 files changed

+48
-43
lines changed

pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,11 @@
348348
</profile>
349349
<profile>
350350
<id>check.sources</id>
351+
<activation>
352+
<property>
353+
<name>!skipCheckSources</name>
354+
</property>
355+
</activation>
351356
<build>
352357
<plugins>
353358
<plugin>
@@ -366,7 +371,7 @@
366371
<configuration>
367372
<logViolationsToConsole>true</logViolationsToConsole>
368373
<includeTestSourceDirectory>true</includeTestSourceDirectory>
369-
<excludes>target/**</excludes>
374+
<sourceDirectories>src</sourceDirectories>
370375
<checkstyleRules>
371376
<module name="Checker">
372377
<module name="FileTabCharacter" />

src/test/java/net/sf/jsqlparser/expression/ExpressionVisitorAdapterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
import org.junit.Test;
4141

4242
/**
43-
*
43+
*
4444
* @author tw
4545
*/
4646
public class ExpressionVisitorAdapterTest {

src/test/java/net/sf/jsqlparser/expression/LongValueTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import static org.junit.Assert.*;
2828

2929
/**
30-
*
30+
*
3131
* @author tw
3232
*/
3333
public class LongValueTest {

src/test/java/net/sf/jsqlparser/schema/ColumnTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import static org.junit.Assert.*;
2828

2929
/**
30-
*
30+
*
3131
* @author tw
3232
*/
3333
public class ColumnTest {

src/test/java/net/sf/jsqlparser/test/select/MemoryTest.java

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -13,51 +13,51 @@ public static void main(String[] args) throws Exception {
1313
CCJSqlParserManager parserManager = new CCJSqlParserManager();
1414

1515
/*
16-
* String longQuery = new String(
17-
* "select * from ( SELECT intermediate.id as id , intermediate.date as " +
18-
* "date FROM ( SELECT DISTINCT ( id ) FROM ( SELECT " +
19-
* "wct_workflows.workflow_id as id , wct_transaction.date as date FROM " +
20-
* "wct_audit_entry , wct_transaction , wct_workflows WHERE " +
21-
* "( wct_audit_entry.privilege = 'W' or wct_audit_entry.privilege = " +
22-
* "'C' ) and wct_audit_entry.outcome = 't' and " +
23-
* "wct_audit_entry.transaction_id = wct_transaction.transaction_id and " +
24-
* "wct_transaction.user_id = 164 and wct_audit_entry.object_id = " +
25-
* "wct_workflows.active_version_id ))) UNION SELECT wct_workflows.workflow_id as " +
26-
* "id , wct_transaction.date as date FROM wct_audit_entry , " +
27-
* "wct_transaction , wct_workflows WHERE ( wct_audit_entry.privilege = " +
28-
* "'W' or wct_audit_entry.privilege = 'C' ) and wct_audit_entry.outcome " +
29-
* "= 't' and wct_audit_entry.transaction_id = " +
30-
* "wct_transaction.transaction_id and wct_transaction.user_id = 164 and " +
31-
* "afdf= ( select wct_audit_entry.object_id from wct_audit_entry , " +
32-
* "wct_workflow_archive where wct_audit_entry.object_id = " +
33-
* "wct_workflow_archive.archive_id and wct_workflows.workflow_id = " +
34-
* "wct_workflow_archive.workflow_id ) " +
35-
* "UNION SELECT wct_workflows.workflow_id " +
36-
* "as id , wct_transaction.date as date FROM wct_audit_entry , " +
37-
* "wct_transaction , wct_workflows WHERE ( wct_audit_entry.privilege = " +
38-
* "'W' OR wct_audit_entry.privilege = 'E' OR wct_audit_entry.privilege = " +
39-
* "'A' ) and wct_audit_entry.outcome = 't' and " +
40-
* "wct_audit_entry.transaction_id = wct_transaction.transaction_id and " +
41-
* "wct_transaction.user_id = 164 and wct_audit_entry.object_id = " +
42-
* "wct_workflows.workflow_id UNION SELECT * FROM interm2 , wct_workflow_docs WHERE " +
43-
* "interm2.id = wct_workflow_docs.document_id ORDER BY id , date DESC ");
16+
* String longQuery = new String(
17+
* "select * from ( SELECT intermediate.id as id , intermediate.date as " +
18+
* "date FROM ( SELECT DISTINCT ( id ) FROM ( SELECT " +
19+
* "wct_workflows.workflow_id as id , wct_transaction.date as date FROM " +
20+
* "wct_audit_entry , wct_transaction , wct_workflows WHERE " +
21+
* "( wct_audit_entry.privilege = 'W' or wct_audit_entry.privilege = " +
22+
* "'C' ) and wct_audit_entry.outcome = 't' and " +
23+
* "wct_audit_entry.transaction_id = wct_transaction.transaction_id and " +
24+
* "wct_transaction.user_id = 164 and wct_audit_entry.object_id = " +
25+
* "wct_workflows.active_version_id ))) UNION SELECT wct_workflows.workflow_id as " +
26+
* "id , wct_transaction.date as date FROM wct_audit_entry , " +
27+
* "wct_transaction , wct_workflows WHERE ( wct_audit_entry.privilege = " +
28+
* "'W' or wct_audit_entry.privilege = 'C' ) and wct_audit_entry.outcome " +
29+
* "= 't' and wct_audit_entry.transaction_id = " +
30+
* "wct_transaction.transaction_id and wct_transaction.user_id = 164 and " +
31+
* "afdf= ( select wct_audit_entry.object_id from wct_audit_entry , " +
32+
* "wct_workflow_archive where wct_audit_entry.object_id = " +
33+
* "wct_workflow_archive.archive_id and wct_workflows.workflow_id = " +
34+
* "wct_workflow_archive.workflow_id ) " +
35+
* "UNION SELECT wct_workflows.workflow_id " +
36+
* "as id , wct_transaction.date as date FROM wct_audit_entry , " +
37+
* "wct_transaction , wct_workflows WHERE ( wct_audit_entry.privilege = " +
38+
* "'W' OR wct_audit_entry.privilege = 'E' OR wct_audit_entry.privilege = " +
39+
* "'A' ) and wct_audit_entry.outcome = 't' and " +
40+
* "wct_audit_entry.transaction_id = wct_transaction.transaction_id and " +
41+
* "wct_transaction.user_id = 164 and wct_audit_entry.object_id = " +
42+
* "wct_workflows.workflow_id UNION SELECT * FROM interm2 , wct_workflow_docs WHERE " +
43+
* "interm2.id = wct_workflow_docs.document_id ORDER BY id , date DESC ");
4444
*/
4545
String longQuery = "select * from k where ID > 4";
4646

4747
/*
48-
* String longQuery = "select * from ( SELECT intermediate.id as id , intermediate.date as "
49-
* + "date FROM ( SELECT DISTINCT ( id ) FROM ( SELECT " +
50-
* "wct_workflows.workflow_id as id , wct_transaction.date as date FROM " +
51-
* "wct_audit_entry , wct_transaction , wct_workflows WHERE " +
52-
* "( wct_audit_entry.privilege = 'W' or wct_audit_entry.privilege = " + "'C' ))))";
48+
* String longQuery = "select * from ( SELECT intermediate.id as id , intermediate.date as "
49+
* + "date FROM ( SELECT DISTINCT ( id ) FROM ( SELECT " +
50+
* "wct_workflows.workflow_id as id , wct_transaction.date as date FROM " +
51+
* "wct_audit_entry , wct_transaction , wct_workflows WHERE " +
52+
* "( wct_audit_entry.privilege = 'W' or wct_audit_entry.privilege = " + "'C' ))))";
5353
*/
5454
/*
55-
* String longQuery = "select * from d WHERE " +
56-
* "( wct_audit_entry.privilege = 'W' or wct_audit_entry.privilege = " +
57-
* "'C' ) and wct_audit_entry.outcome = 't' and " +
58-
* "wct_audit_entry.transaction_id = wct_transaction.transaction_id and " +
59-
* "wct_transaction.user_id = 164 and wct_audit_entry.object_id = " +
60-
* "wct_workflows.active_version_id ";
55+
* String longQuery = "select * from d WHERE " +
56+
* "( wct_audit_entry.privilege = 'W' or wct_audit_entry.privilege = " +
57+
* "'C' ) and wct_audit_entry.outcome = 't' and " +
58+
* "wct_audit_entry.transaction_id = wct_transaction.transaction_id and " +
59+
* "wct_transaction.user_id = 164 and wct_audit_entry.object_id = " +
60+
* "wct_workflows.active_version_id ";
6161
*/
6262
StringReader stringReader = new StringReader(longQuery);
6363
Statement statement = parserManager.parse(stringReader);

0 commit comments

Comments
 (0)