Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ tmp/
.lastsession
.pathhistory
by-example/
render/
bookmark/
scratch/
script/
jailer.json
downloads/
nbproject/build-impl.xml
condition/
nbproject/
nbproject/
target/
.flattened-pom.xml
19 changes: 19 additions & 0 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
wrapperVersion=3.3.2
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
24 changes: 24 additions & 0 deletions HOWTO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Jailer HOWTO

Please open this in your IDE as a Maven project.

## Building

```shell
./mvnw clean package
```

After building it, you can run the jailer.sh script to execute the command line.

To build the stand-alone jar:
```shell
./mvnw clean package --enable-profiles executable-jar
```

Stand alone jar is easier to use in batch projects, because only a single file needs to be copied.

## Running the Jailer GUI

After building the project you can execute [jailerGUI.sh](jailerGUI.sh).

Or, you can run (or debug) GUI in IDE: to do that simply open [`JailerUI.java`](jailer-gui/src/main/gui/net/sf/jailer/ui/JailerUI.java) in your IDE and launch it.
2 changes: 1 addition & 1 deletion driverlist.csv
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PostgreSQL;jdbc:postgresql://<HOST(localhost)>[:<PORT(5432)>]/[<DATABASE>];org.postgresql.Driver;lib/postgresql-42.7.4.jar;;jdbc:postgresql:(//[^/]*/[^\\?]+).* jdbc:postgresql://.*/([^\\?]+).* jdbc:postgresql://([^/:]+).* jdbc:postgresql:([^/:]+).*;postgresql.png
Oracle Thin;jdbc:oracle:thin:@<HOST(localhost)>:<PORT(1521)>:<SID>;oracle.jdbc.driver.OracleDriver;;https://repo1.maven.org/maven2/com/oracle/database/jdbc/ojdbc8/23.6.0.24.10/ojdbc8-23.6.0.24.10.jar https://repo1.maven.org/maven2/com/oracle/database/xml/xdb/23.6.0.24.10/xdb-23.6.0.24.10.jar https://repo1.maven.org/maven2/com/oracle/database/xml/xmlparserv2/23.6.0.24.10/xmlparserv2-23.6.0.24.10.jar https://repo1.maven.org/maven2/com/oracle/database/nls/orai18n/23.6.0.24.10/orai18n-23.6.0.24.10.jar;jdbc:oracle:thin:@([^\\?/\;]+/[^\\?/\;]+).* jdbc:oracle:thin:@([^\\?/\;]+).*;oracle.png
Oracle OCI;jdbc:oracle:oci:@<TNS_NAME>;oracle.jdbc.driver.OracleDriver;;https://repo1.maven.org/maven2/com/oracle/database/jdbc/ojdbc8/23.6.0.24.10/ojdbc8-23.6.0.24.10.jar https://repo1.maven.org/maven2/com/oracle/database/xml/xdb/23.6.0.24.10/xdb-23.6.0.24.10.jar https://repo1.maven.org/maven2/com/oracle/database/xml/xmlparserv2/23.6.0.24.10/xmlparserv2-23.6.0.24.10.jar https://repo1.maven.org/maven2/com/oracle/database/nls/orai18n/23.6.0.24.10/orai18n-23.6.0.24.10.jar;jdbc:oracle:oci:@([^\\?/\;]+).*;oracle.png
MySQL;jdbc:mysql://<HOST(localhost)>:<PORT(3306)>[/<DATABASE>];com.mysql.jdbc.Driver;lib/mysql-connector-java-8.0.21.jar;;jdbc:mysql:(//[^/]*/[^\\?]+).* jdbc:mysql://([^/:]+).* jdbc:mysql:([^/:]+).*;mysql.png
MySQL;jdbc:mysql://<HOST(localhost)>:<PORT(3306)>[/<DATABASE>];com.mysql.cj.jdbc.Driver;lib/mysql-connector-j-9.2.0.jar;;jdbc:mysql:(//[^/]*/[^\\?]+).* jdbc:mysql://([^/:]+).* jdbc:mysql:([^/:]+).*;mysql.png
MySQL 5 (or below);jdbc:mysql://<HOST(localhost)>:<PORT(3306)>[/<DATABASE>];org.gjt.mm.mysql.Driver;lib/mysql-connector-java-5.1.5-bin.jar;;jdbc:mysql:(//[^/]*/[^\\?]+).* jdbc:mysql://([^/:]+).* jdbc:mysql:([^/:]+).*;mysql.png
MariaDB;jdbc:mariadb://<HOST(localhost)>:<PORT(3306)>[/<DATABASE>];org.mariadb.jdbc.Driver;lib/mariadb-java-client-2.7.3.jar;;jdbc:mariadb://.*/([^\\?]+).* jdbc:mariadb://([^/:]+).* jdbc:mariadb:([^/:]+).*;mariadb.png
Microsoft SQL Server;jdbc:sqlserver://<HOST(localhost)>[\\<INSTANCE>][:<PORT>];com.microsoft.sqlserver.jdbc.SQLServerDriver;lib/mssql-jdbc-12.2.0.jre8.jar;;jdbc:sqlserver://(.*\\\\[^:\;]+).* jdbc:sqlserver://([^\\?/\;]+).* jdbc:sqlserver://.*\\binstanceName\\s*=\\s*([^:\;]+).* jdbc:sqlserver://.*\\bdatabaseName\\s*=\\s*([^:\;]+).* jdbc:sqlserver://.*\\bservername\\s*=\\s*([^:\;]+).* jdbc:sqlserver://([^/\\\\:\;]+).*;mssql.png
Expand Down
160 changes: 160 additions & 0 deletions jailer-engine/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.github.wisser.jailer</groupId>
<artifactId>jailer-parent</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>jailer-engine</artifactId>
<packaging>jar</packaging>
<name>Jailer Engine</name>

<properties>
<exec.mainClass>net.sf.jailer.Jailer</exec.mainClass>
</properties>

<dependencies>
<dependency>
<groupId>args4j</groupId>
<artifactId>args4j</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>

<dependency>
<groupId>com.github.jsqlparser</groupId>
<artifactId>jsqlparser</artifactId>
</dependency>

<!-- used by demo DB and LocalDatabaseConfiguration to store temp export data -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-text</artifactId>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
</dependency>

<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
</dependency>

</dependencies>


<build>

<resources>
<resource>
<directory>${project.basedir}/src/main/java</directory>
<includes>
<include>**/*.json</include>
<include>**/*.csv</include>
<include>**/*.sql</include>
<include>**/*.jm</include>
</includes>
</resource>
</resources>

<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>

</build>

<profiles>
<profile>
<id>executable-jar</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>${exec.mainClass}</mainClass>
</manifest>
</archive>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>
2 changes: 2 additions & 0 deletions jailer-engine/src/main/java/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
please move the "net" folder from src/main/engine/ here.
("net" will be the immediate subfolder here)
Loading