Skip to content

Commit

Permalink
Add trace test to sample workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasPohl committed Mar 15, 2020
1 parent f29991b commit a4f14a7
Show file tree
Hide file tree
Showing 5 changed files with 356 additions and 48 deletions.
4 changes: 2 additions & 2 deletions .gitignore
@@ -1,5 +1,5 @@
/target/
/bin/
target/
bin/
esql-plugin/.settings/
esql-frontend/.settings/
esql-checks/.settings/
Expand Down
47 changes: 1 addition & 46 deletions pom.xml
Expand Up @@ -322,33 +322,6 @@
<artifactId>maven-install-plugin</artifactId>
<version>${version.install.plugin}</version>
</plugin>
<!--<plugin> -->
<!-- This plugin is used to list the licenses of Maven dependencies.
Command-line is: mvn license:aggregate-add-third-party --><!-- <groupId>org.codehaus.mojo</groupId> <artifactId>license-maven-plugin</artifactId>
<version>1.8</version> <configuration> <includedScopes>compile</includedScopes>
<excludedLicenses>AGPL 3|GPL 2|GPL 3</excludedLicenses> <licenseMerges> -->
<!-- keep values on a single line -->
<!--<licenseMerge>Apache 2|Apache 2.0|Apache Public License 2.0|The Apache
Software License, Version 2.0|Apache License, Version 2.0|Apache Software
Licenses|apache_v2</licenseMerge> <licenseMerge>CDDL 1.0|COMMON DEVELOPMENT
AND DISTRIBUTION LICENSE (CDDL) Version 1.0|Common Development and Distribution
License (CDDL) v1.0|cddl_v1</licenseMerge> <licenseMerge>LGPL 2.1|GNU LGPL
2.1|GNU Lesser General Public License (LGPL), Version 2.1|GNU Lesser General
Public License, version 2.1|lgpl_v2_1</licenseMerge> <licenseMerge>LGPL 3|GNU
LGPL 3|GNU LESSER GENERAL PUBLIC LICENSE, Version 3|GNU Lesser General Public
Licence|GNU Lesser General Public License|GNU LESSER GENERAL PUBLIC LICENSE|lgpl_v3</licenseMerge>
<licenseMerge>Dual license: CDDL 1.0 and GPL v2|Dual license consisting of
the CDDL v1.0 and GPL v2|CDDL+GPLv2|CDDL+GPL|CDDL+GPL License</licenseMerge>
<licenseMerge>Dual license: CDDL 1.1 and GPL v2|Dual license consisting of
the CDDL v1.1 and GPL v2|CDDL1_1+GPLv2</licenseMerge> <licenseMerge>Dual
License: CDDL 1.0 and GPL V2 with Classpath Exception|CDDL + GPLv2 with classpath
exception</licenseMerge> <licenseMerge>EPL 1.0|Eclipse Public License 1.0|Eclipse
Public License - v 1.0|Eclipse Public License, Version 1.0|EPL|epl_v1</licenseMerge>
<licenseMerge>MIT|MIT License|The MIT License|mit</licenseMerge> <licenseMerge>GPL
2|GNU General Public License (GPL) version 2.0|GPL 2.0|gpl_v2</licenseMerge>
<licenseMerge>GPL 3|GNU General Public License (GPL) version 3.0|GPL 3.0|gpl_v3</licenseMerge>
<licenseMerge>AGPL 3|GNU Affero General Public License (AGPL) version 3.0|AGPL
3.0|agpl_v3</licenseMerge> </licenseMerges> </configuration> </plugin> -->
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>jarjar-maven-plugin</artifactId>
Expand Down Expand Up @@ -449,11 +422,6 @@
</pluginManagement>

<plugins>
<!--<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>buildnumber-maven-plugin</artifactId>
<executions> <execution> <phase>validate</phase> <goals> <goal>create</goal>
</goals> </execution> </executions> <configuration> <doCheck>false</doCheck>
<doUpdate>false</doUpdate> <getRevisionOnlyOnce>true</getRevisionOnlyOnce>
<revisionOnScmFailure>0</revisionOnScmFailure> </configuration> </plugin> -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down Expand Up @@ -584,20 +552,7 @@
</archive>
</configuration>
</plugin>
<!--<plugin> <groupId>com.mycila</groupId> <artifactId>license-maven-plugin</artifactId>
<version>2.11</version> <dependencies> <dependency> <groupId>org.sonarsource.license-headers</groupId>
<artifactId>license-headers</artifactId> <version>1.3</version> </dependency>
</dependencies> <configuration> <header>sonarsource/licenseheaders/${license.name}.txt</header>
<failIfMissing>true</failIfMissing> <strictCheck>true</strictCheck> <encoding>${project.build.sourceEncoding}</encoding>
<properties> <license.owner>${license.owner}</license.owner> <license.title>${license.title}</license.title>
<license.years>${license.years}</license.years> <license.mailto>${license.mailto}</license.mailto>
</properties> <mapping> <java>SLASHSTAR_STYLE</java> <js>SLASHSTAR_STYLE</js>
<css>SLASHSTAR_STYLE</css> <less>SLASHSTAR_STYLE</less> </mapping> <includes>
<include>src/*/java/**/*.java</include> <include>src/*/js/**/*.js</include>
<include>src/*/css/**/*.css</include> <include>src/*/less/**/*.less</include>
</includes> </configuration> <executions> <execution> <id>enforce-license-headers</id>
<phase>validate</phase> <goals> <goal>check</goal> </goals> </execution>
</executions> </plugin> -->

<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>groovy-maven-plugin</artifactId>
Expand Down
2 changes: 2 additions & 0 deletions sampleWorkspace/sonar-project.properties
Expand Up @@ -13,3 +13,5 @@ sonar.sources=.

# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8

sonar.esql.trace.reportPaths=trace/trace.xml
8 changes: 8 additions & 0 deletions sampleWorkspace/trace.esql
@@ -0,0 +1,8 @@
CREATE COMPUTE MODULE Test_Compute
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
DECLARE i INTEGER 1;
SET i = 2;
CALL dec(i);
END;
END MODULE;

0 comments on commit a4f14a7

Please sign in to comment.