Skip to content

Commit 17c7b99

Browse files
author
David Baum
committed
Merge branch 'feature/generator2' into development
2 parents be70b80 + bd00323 commit 17c7b99

52 files changed

Lines changed: 6467 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

generator2/.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
.metadata/
2+
*/bin
3+
*/model/*
4+
*/xtend-gen/*
5+
*/test-xtend-gen/*
6+
*/src-gen/*
7+
*.xml_gen
8+
*/target/*
9+
**/generated-sources/*
10+
*/.settings/*
11+
*/output/*
12+
.directory
13+
/databases
14+
/databases.old
15+
dbms
16+
/bin/
17+
store_lock
18+
**.log
19+
neostore.transaction.db.**
20+
*.xtextbin
21+
*.xtendbin
22+
test-xtend-gen/
23+
24+
# Ignore default models
25+
/.recommenders/

generator2/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# README #
2+
3+
## What is this repository for?
4+
5+
The generator takes a database created by jQAssistant as input and generates a software visualization that can be explored using the ui component.
6+
7+
## How do I build and run the generator?
8+
* [Maven](../wiki/Maven) is used as build management system. It is used to build the generator, to run testcases and to start the generator
9+
10+
## Contribution Guidelines
11+
12+
* Don't commit generated files like in *tmp*, *xtend-gen* and *src-gen*
13+
* Commit only working and tested code
14+
* Write tests and change existing tests if necessary
15+
16+
## Further Documentation
17+
18+
* [Overview](../wiki/Generator%20Overview)
19+
* [Generation Process](../wiki/Generation%20Process)
20+
* [Maven](../wiki/Maven)
21+
* [Testing Process](../wiki/Testing%20Process%20Generator)
22+
* [Xtend Coding Guidelines](../wiki/Xtend%20Coding%20Guidelines)
23+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="target/classes" path="src">
4+
<attributes>
5+
<attribute name="optional" value="true"/>
6+
<attribute name="maven.pomderived" value="true"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="src" output="target/test-classes" path="tests">
10+
<attributes>
11+
<attribute name="test" value="true"/>
12+
</attributes>
13+
</classpathentry>
14+
<classpathentry kind="src" path="xtend-gen"/>
15+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
16+
<attributes>
17+
<attribute name="maven.pomderived" value="true"/>
18+
</attributes>
19+
</classpathentry>
20+
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
21+
<attributes>
22+
<attribute name="maven.pomderived" value="true"/>
23+
</attributes>
24+
</classpathentry>
25+
<classpathentry kind="output" path="target/classes"/>
26+
</classpath>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target/
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>org.getaviz.generator</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
15+
<triggers>full,incremental,</triggers>
16+
<arguments>
17+
<dictionary>
18+
<key>LaunchConfigHandle</key>
19+
<value>&lt;project&gt;/.externalToolBuilders/org.eclipse.xtext.ui.shared.xtextBuilder.launch</value>
20+
</dictionary>
21+
</arguments>
22+
</buildCommand>
23+
<buildCommand>
24+
<name>org.eclipse.jdt.core.javabuilder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
28+
<buildCommand>
29+
<name>org.eclipse.m2e.core.maven2Builder</name>
30+
<arguments>
31+
</arguments>
32+
</buildCommand>
33+
</buildSpec>
34+
<natures>
35+
<nature>org.eclipse.jdt.core.javanature</nature>
36+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
37+
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
38+
</natures>
39+
</projectDescription>
Lines changed: 270 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,270 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<parent>
6+
<relativePath>../org.getaviz.parent/pom.xml</relativePath>
7+
<groupId>org.getaviz</groupId>
8+
<artifactId>org.getaviz.parent</artifactId>
9+
<version>1.0.0-SNAPSHOT</version>
10+
</parent>
11+
<artifactId>org.getaviz.generator</artifactId>
12+
<name>Getaviz Generator</name>
13+
<distributionManagement>
14+
<site>
15+
<id>${project.artifactId}-site</id>
16+
<url>${project.baseUri}</url>
17+
</site>
18+
</distributionManagement>
19+
<dependencies>
20+
<!-- Internal Dependencies -->
21+
<dependency>
22+
<groupId>org.getaviz.lib.database</groupId>
23+
<artifactId>org.getaviz.lib.database</artifactId>
24+
<version>1.0.0-SNAPSHOT</version>
25+
</dependency>
26+
<!-- External Dependencies -->
27+
28+
<!-- Apache Commons -->
29+
<!-- https://mvnrepository.com/artifact/commons-logging/commons-logging -->
30+
<dependency>
31+
<groupId>commons-logging</groupId>
32+
<artifactId>commons-logging</artifactId>
33+
<version>1.2</version>
34+
</dependency>
35+
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-text -->
36+
<dependency>
37+
<groupId>org.apache.commons</groupId>
38+
<artifactId>commons-text</artifactId>
39+
<version>1.6</version>
40+
</dependency>
41+
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
42+
<dependency>
43+
<groupId>org.apache.commons</groupId>
44+
<artifactId>commons-lang3</artifactId>
45+
<version>3.8.1</version>
46+
</dependency>
47+
<!-- https://mvnrepository.com/artifact/commons-codec/commons-codec -->
48+
<dependency>
49+
<groupId>commons-codec</groupId>
50+
<artifactId>commons-codec</artifactId>
51+
<version>1.11</version>
52+
</dependency>
53+
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-configuration2 -->
54+
<dependency>
55+
<groupId>org.apache.commons</groupId>
56+
<artifactId>commons-configuration2</artifactId>
57+
<version>2.4</version>
58+
</dependency>
59+
60+
<!-- Other -->
61+
<!-- https://mvnrepository.com/artifact/org.eclipse.xtend/org.eclipse.xtend.lib -->
62+
<dependency>
63+
<groupId>org.eclipse.xtend</groupId>
64+
<artifactId>org.eclipse.xtend.lib</artifactId>
65+
<version>${xtend.version}</version>
66+
</dependency>
67+
<dependency>
68+
<groupId>com.google.guava</groupId>
69+
<artifactId>guava</artifactId>
70+
<version>19.0-rc3</version>
71+
</dependency>
72+
<!-- https://mvnrepository.com/artifact/org.neo4j/neo4j-graphdb-api -->
73+
<dependency>
74+
<groupId>org.neo4j</groupId>
75+
<artifactId>neo4j-graphdb-api</artifactId>
76+
<version>${neo4j.version}</version>
77+
</dependency>
78+
<!-- https://mvnrepository.com/artifact/org.neo4j/neo4j-resource -->
79+
<dependency>
80+
<groupId>org.neo4j</groupId>
81+
<artifactId>neo4j-resource</artifactId>
82+
<version>${neo4j.version}</version>
83+
</dependency>
84+
<!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
85+
<dependency>
86+
<groupId>commons-beanutils</groupId>
87+
<artifactId>commons-beanutils</artifactId>
88+
<version>1.9.3</version>
89+
</dependency>
90+
<dependency>
91+
<groupId>com.vividsolutions</groupId>
92+
<artifactId>jts</artifactId>
93+
<version>1.13</version>
94+
</dependency>
95+
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
96+
<dependency>
97+
<groupId>org.junit.jupiter</groupId>
98+
<artifactId>junit-jupiter-api</artifactId>
99+
<version>5.3.1</version>
100+
<scope>test</scope>
101+
</dependency>
102+
<dependency>
103+
<groupId>org.junit.jupiter</groupId>
104+
<artifactId>junit-jupiter-engine</artifactId>
105+
<version>5.3.1</version>
106+
<scope>test</scope>
107+
</dependency>
108+
<dependency>
109+
<groupId>org.junit.vintage</groupId>
110+
<artifactId>junit-vintage-engine</artifactId>
111+
<version>5.3.1</version>
112+
<scope>test</scope>
113+
</dependency>
114+
<dependency>
115+
<groupId>org.junit.platform</groupId>
116+
<artifactId>junit-platform-launcher</artifactId>
117+
<version>1.1.0</version>
118+
<scope>test</scope>
119+
</dependency>
120+
<dependency>
121+
<groupId>org.junit.platform</groupId>
122+
<artifactId>junit-platform-runner</artifactId>
123+
<version>1.1.0</version>
124+
<scope>test</scope>
125+
</dependency>
126+
<!-- https://mvnrepository.com/artifact/org.neo4j.test/neo4j-harness -->
127+
<dependency>
128+
<groupId>org.neo4j.test</groupId>
129+
<artifactId>neo4j-harness</artifactId>
130+
<version>3.4.9</version>
131+
<scope>test</scope>
132+
</dependency>
133+
134+
135+
</dependencies>
136+
<build>
137+
<sourceDirectory>src</sourceDirectory>
138+
<plugins>
139+
<plugin>
140+
<groupId>org.eclipse.xtend</groupId>
141+
<artifactId>xtend-maven-plugin</artifactId>
142+
</plugin>
143+
<plugin>
144+
<artifactId>maven-compiler-plugin</artifactId>
145+
<!-- <executions> -->
146+
<!-- <execution> -->
147+
<!-- <id>default-testCompile</id> -->
148+
<!-- <phase>none</phase> -->
149+
<!-- </execution> -->
150+
<!-- </executions> -->
151+
</plugin>
152+
<!-- disable test execution -->
153+
<plugin>
154+
<groupId>org.apache.maven.plugins</groupId>
155+
<artifactId>maven-surefire-plugin</artifactId>
156+
<version>2.19.1</version>
157+
<dependencies>
158+
<dependency>
159+
<groupId>org.junit.platform</groupId>
160+
<artifactId>junit-platform-surefire-provider</artifactId>
161+
<version>1.1.0</version>
162+
</dependency>
163+
<dependency>
164+
<groupId>org.junit.jupiter</groupId>
165+
<artifactId>junit-jupiter-engine</artifactId>
166+
<version>5.3.1</version>
167+
</dependency>
168+
</dependencies>
169+
</plugin>
170+
<plugin>
171+
<groupId>org.apache.maven.plugins</groupId>
172+
<artifactId>maven-javadoc-plugin</artifactId>
173+
<version>2.10.3</version>
174+
<configuration>
175+
<sourcepath>${basedir}/xtend-gen/:${basedir}/src/</sourcepath>
176+
<skip>false</skip>
177+
<quiet>true</quiet>
178+
<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
179+
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
180+
</configuration>
181+
</plugin>
182+
<plugin>
183+
<groupId>org.codehaus.mojo</groupId>
184+
<artifactId>exec-maven-plugin</artifactId>
185+
<version>1.4.0</version>
186+
<executions>
187+
<execution>
188+
<phase>deploy</phase>
189+
<goals>
190+
<goal>java</goal>
191+
</goals>
192+
</execution>
193+
</executions>
194+
<configuration>
195+
<executable>java</executable>
196+
<includeProjectDependencies>true</includeProjectDependencies>
197+
<includePluginDependencies>true</includePluginDependencies>
198+
<arguments>
199+
<!-- uncomment to increase java heap size -->
200+
<argument>-Xmx8g</argument>
201+
<argument>-classpath</argument>
202+
<classpath />
203+
<argument>org.getaviz.generator.Generator</argument>
204+
<argument>-p</argument>
205+
<argument>runtimeProject=${project.basedir}</argument>
206+
</arguments>
207+
</configuration>
208+
</plugin>
209+
</plugins>
210+
211+
<pluginManagement>
212+
<plugins>
213+
<plugin>
214+
<artifactId>maven-project-info-reports-plugin</artifactId>
215+
<version>2.9</version>
216+
</plugin>
217+
<!-- xtend-maven-plugin is in pluginManagement instead of in plugins
218+
so that it doesn't run before the exec-maven-plugin's *.mwe2 gen; this way
219+
we can list it after. -->
220+
<plugin>
221+
<groupId>org.eclipse.xtend</groupId>
222+
<artifactId>xtend-maven-plugin</artifactId>
223+
<version>${xtend.version}</version>
224+
<!-- <dependencies> -->
225+
<!-- <dependency> -->
226+
<!-- <groupId>org.eclipse.platform</groupId> -->
227+
<!-- <artifactId>org.eclipse.equinox.common</artifactId> -->
228+
<!-- <version>3.10.0</version> -->
229+
<!-- </dependency> -->
230+
<!-- </dependencies> -->
231+
<executions>
232+
<execution>
233+
<goals>
234+
<goal>compile</goal>
235+
<goal>testCompile</goal>
236+
</goals>
237+
</execution>
238+
</executions>
239+
<configuration>
240+
<outputDirectory>${basedir}/xtend-gen</outputDirectory>
241+
<testOutputDirectory>${basedir}/test-xtend-gen</testOutputDirectory>
242+
</configuration>
243+
</plugin>
244+
<plugin>
245+
<groupId>org.apache.maven.plugins</groupId>
246+
<artifactId>maven-compiler-plugin</artifactId>
247+
<version>3.5.1</version>
248+
<configuration>
249+
<source>1.8</source>
250+
<target>1.8</target>
251+
<useIncrementalCompilation>true</useIncrementalCompilation>
252+
</configuration>
253+
</plugin>
254+
</plugins>
255+
</pluginManagement>
256+
</build>
257+
<reporting>
258+
<plugins>
259+
<plugin>
260+
<groupId>org.apache.maven.plugins</groupId>
261+
<artifactId>maven-project-info-reports-plugin</artifactId>
262+
<version>2.4</version>
263+
<configuration>
264+
<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
265+
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
266+
</configuration>
267+
</plugin>
268+
</plugins>
269+
</reporting>
270+
</project>

0 commit comments

Comments
 (0)