Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Erwan BOUSSE
moclodash
Commits
8f8ce760
Commit
8f8ce760
authored
Apr 04, 2014
by
Erwan Bousse
Browse files
Forgot to re-add modules
parent
c4e89b54
Changes
74
Hide whitespace changes
Inline
Side-by-side
moclodash/fr.inria.diverse.cloning.external-libs/.classpath
0 → 100644
View file @
8f8ce760
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry
exported=
"true"
kind=
"lib"
path=
"lib/zt-zip-1.7.jar"
/>
<classpathentry
exported=
"true"
kind=
"lib"
path=
"lib/slf4j-jdk14-1.6.6.jar"
/>
<classpathentry
exported=
"true"
kind=
"lib"
path=
"lib/slf4j-api-1.6.6.jar"
/>
<classpathentry
exported=
"true"
kind=
"lib"
path=
"lib/jopt-simple-4.6.jar"
/>
<classpathentry
exported=
"true"
kind=
"lib"
path=
"lib/commons-io-1.4.jar"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.pde.core.requiredPlugins"
/>
<classpathentry
kind=
"src"
path=
"src"
/>
<classpathentry
kind=
"output"
path=
"bin"
/>
</classpath>
moclodash/fr.inria.diverse.cloning.external-libs/.gitignore
0 → 100644
View file @
8f8ce760
/bin
moclodash/fr.inria.diverse.cloning.external-libs/.project
0 → 100644
View file @
8f8ce760
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>
fr.inria.diverse.cloning.external-libs
</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>
org.eclipse.jdt.core.javabuilder
</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>
org.eclipse.pde.ManifestBuilder
</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>
org.eclipse.pde.SchemaBuilder
</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>
org.eclipse.pde.PluginNature
</nature>
<nature>
org.eclipse.jdt.core.javanature
</nature>
</natures>
</projectDescription>
moclodash/fr.inria.diverse.cloning.external-libs/.settings/org.eclipse.jdt.core.prefs
0 → 100644
View file @
8f8ce760
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7
moclodash/fr.inria.diverse.cloning.external-libs/META-INF/MANIFEST.MF
0 → 100644
View file @
8f8ce760
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: External-libs
Bundle-SymbolicName: fr.inria.diverse.cloning.external-libs
Bundle-Version: 0.1.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-ClassPath: .,
lib/commons-io-1.4.jar,
lib/jopt-simple-4.6.jar,
lib/slf4j-api-1.6.6.jar,
lib/slf4j-jdk14-1.6.6.jar,
lib/zt-zip-1.7.jar
Export-Package: joptsimple,
org.zeroturnaround.zip
moclodash/fr.inria.diverse.cloning.external-libs/build.properties
0 → 100644
View file @
8f8ce760
source..
=
src/
output..
=
bin/
bin.includes
=
META-INF/,
\
.,
\
lib/commons-io-1.4.jar,
\
lib/jopt-simple-4.6.jar,
\
lib/slf4j-api-1.6.6.jar,
\
lib/slf4j-jdk14-1.6.6.jar,
\
lib/zt-zip-1.7.jar
moclodash/fr.inria.diverse.cloning.external-libs/pom.xml
0 → 100644
View file @
8f8ce760
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2014 Université de Rennes 1.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
Erwan Bousse - initial API and implementation
-->
<project
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
fr.inria.diverse.cloning
</groupId>
<artifactId>
fr.inria.diverse.cloning.external-libs
</artifactId>
<version>
0.1.0-SNAPSHOT
</version>
<packaging>
eclipse-plugin
</packaging>
<parent>
<groupId>
fr.inria.diverse.cloning
</groupId>
<artifactId>
moclodash
</artifactId>
<version>
0.1.0-SNAPSHOT
</version>
</parent>
<dependencies>
<dependency>
<groupId>
org.zeroturnaround
</groupId>
<artifactId>
zt-zip
</artifactId>
<version>
1.7
</version>
<type>
jar
</type>
<scope>
compile
</scope>
</dependency>
<dependency>
<groupId>
net.sf.jopt-simple
</groupId>
<artifactId>
jopt-simple
</artifactId>
<version>
4.6
</version>
<type>
jar
</type>
<scope>
compile
</scope>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-jdk14
</artifactId>
<version>
1.6.6
</version>
<type>
jar
</type>
<scope>
compile
</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-dependency-plugin
</artifactId>
<executions>
<execution>
<id>
copy-dependencies
</id>
<phase>
initialize
</phase>
<goals>
<goal>
copy-dependencies
</goal>
</goals>
<configuration>
<overWriteIfNewer>
true
</overWriteIfNewer>
<outputDirectory>
${project.basedir}/lib
</outputDirectory>
<markersDirectory>
${project.basedir}/lib
</markersDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-clean-plugin
</artifactId>
<executions>
<execution>
<id>
clean-dependencies
</id>
<phase>
clean
</phase>
<goals>
<goal>
clean
</goal>
</goals>
<configuration>
<filesets>
<fileset>
<directory>
lib
</directory>
<includes>
<include>
**/*
</include>
</includes>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
moclodash/fr.inria.diverse.cloning.materialgenerator.cli.product/.project
0 → 100644
View file @
8f8ce760
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>
fr.inria.diverse.cloning.materialgenerator.cli.product
</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
moclodash/fr.inria.diverse.cloning.materialgenerator.cli.product/main.product
0 → 100644
View file @
8f8ce760
<?xml version="1.0" encoding="UTF-8"?>
<?pde version="3.5"?>
<product
name=
"Benchmark tool"
uid=
"fr.inria.diverse.cloning.benchmark.cli.product"
id=
"fr.inria.diverse.cloning.materialgenerator.cli.CloningMaterialGeneratorCLI"
application=
"fr.inria.diverse.cloning.materialgenerator.cli.application"
version=
"1"
useFeatures=
"false"
includeLaunchers=
"true"
>
<configIni
use=
"default"
>
</configIni>
<launcherArgs>
<vmArgsMac>
-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts
</vmArgsMac>
</launcherArgs>
<windowImages/>
<launcher
name=
"cloning-material-generator"
>
<solaris/>
<win
useIco=
"false"
>
<bmp/>
</win>
</launcher>
<vm>
</vm>
<plugins>
<plugin
id=
"fr.inria.diverse.cloning.materialgenerator.cli"
version=
"0.1.0.qualifier"
/>
<plugin
id=
"org.eclipse.core.runtime"
/>
</plugins>
<configurations>
<plugin
id=
"org.eclipse.core.runtime"
autoStart=
"true"
startLevel=
"0"
/>
</configurations>
</product>
moclodash/fr.inria.diverse.cloning.materialgenerator.cli.product/pom.xml
0 → 100644
View file @
8f8ce760
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2014 Université de Rennes 1.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
Erwan Bousse - initial API and implementation
-->
<project
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
fr.inria.diverse.cloning
</groupId>
<artifactId>
fr.inria.diverse.cloning.materialgenerator.cli.product
</artifactId>
<version>
0.1.0-SNAPSHOT
</version>
<packaging>
eclipse-repository
</packaging>
<parent>
<groupId>
fr.inria.diverse.cloning
</groupId>
<artifactId>
moclodash
</artifactId>
<version>
0.1.0-SNAPSHOT
</version>
</parent>
<build>
<plugins>
<plugin>
<groupId>
org.eclipse.tycho
</groupId>
<artifactId>
tycho-p2-director-plugin
</artifactId>
<version>
${tycho.version}
</version>
<executions>
<execution>
<id>
create-product-distributions
</id>
<goals>
<goal>
materialize-products
</goal>
<goal>
archive-products
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
moclodash/fr.inria.diverse.cloning.materialgenerator.cli/.classpath
0 → 100644
View file @
8f8ce760
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.pde.core.requiredPlugins"
/>
<classpathentry
kind=
"src"
path=
"src"
/>
<classpathentry
kind=
"output"
path=
"bin"
/>
</classpath>
moclodash/fr.inria.diverse.cloning.materialgenerator.cli/.gitignore
0 → 100644
View file @
8f8ce760
/bin
moclodash/fr.inria.diverse.cloning.materialgenerator.cli/.project
0 → 100644
View file @
8f8ce760
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>
fr.inria.diverse.cloning.materialgenerator.cli
</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>
org.eclipse.jdt.core.javabuilder
</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>
org.eclipse.pde.ManifestBuilder
</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>
org.eclipse.pde.SchemaBuilder
</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>
org.eclipse.pde.PluginNature
</nature>
<nature>
org.eclipse.jdt.core.javanature
</nature>
</natures>
</projectDescription>
moclodash/fr.inria.diverse.cloning.materialgenerator.cli/.settings/org.eclipse.jdt.core.prefs
0 → 100644
View file @
8f8ce760
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7
moclodash/fr.inria.diverse.cloning.materialgenerator.cli/META-INF/MANIFEST.MF
0 → 100644
View file @
8f8ce760
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: App
Bundle-SymbolicName: fr.inria.diverse.cloning.materialgenerator.cli;singleton:=true
Bundle-Version: 0.1.0.qualifier
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.core.resources,
org.eclipse.jdt.core,
fr.inria.diverse.cloning.materialgenerator,
fr.inria.diverse.cloning.external-libs;bundle-version="0.1.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-ClassPath: .
moclodash/fr.inria.diverse.cloning.materialgenerator.cli/build.properties
0 → 100644
View file @
8f8ce760
output..
=
bin/
bin.includes
=
plugin.xml,
\
META-INF/,
\
.
source..
=
src/
moclodash/fr.inria.diverse.cloning.materialgenerator.cli/plugin.xml
0 → 100644
View file @
8f8ce760
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
id=
"application"
point=
"org.eclipse.core.runtime.applications"
>
<application>
<run
class=
"fr.inria.diverse.cloning.materialgenerator.cli.Application"
>
</run>
</application>
</extension>
<extension
id=
"CloningMaterialGeneratorCLI"
point=
"org.eclipse.core.runtime.products"
>
<product
application=
"fr.inria.diverse.cloning.materialgenerator.cli.application"
name=
"Benchmark tool"
>
<property
name=
"appName"
value=
"Benchmark tool"
>
</property>
</product>
</extension>
</plugin>
moclodash/fr.inria.diverse.cloning.materialgenerator.cli/pom.xml
0 → 100644
View file @
8f8ce760
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2014 Université de Rennes 1.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
Erwan Bousse - initial API and implementation
-->
<project
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
fr.inria.diverse.cloning
</groupId>
<artifactId>
fr.inria.diverse.cloning.materialgenerator.cli
</artifactId>
<version>
0.1.0-SNAPSHOT
</version>
<packaging>
eclipse-plugin
</packaging>
<parent>
<groupId>
fr.inria.diverse.cloning
</groupId>
<artifactId>
moclodash
</artifactId>
<version>
0.1.0-SNAPSHOT
</version>
</parent>
</project>
moclodash/fr.inria.diverse.cloning.materialgenerator.cli/src/fr/inria/diverse/cloning/materialgenerator/cli/Application.java
0 → 100644
View file @
8f8ce760
/*******************************************************************************
* Copyright (c) 2014 Université de Rennes 1.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Erwan Bousse - initial API and implementation
******************************************************************************/
package
fr.inria.diverse.cloning.materialgenerator.cli
;
import
java.io.File
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.Set
;
import
joptsimple.OptionException
;
import
joptsimple.OptionParser
;
import
joptsimple.OptionSet
;
import
joptsimple.OptionSpec
;
import
org.eclipse.core.resources.IProject
;
import
org.eclipse.core.resources.IProjectDescription
;
import
org.eclipse.core.resources.ResourcesPlugin
;
import
org.eclipse.core.runtime.Path
;
import
org.eclipse.equinox.app.IApplication
;
import
org.eclipse.equinox.app.IApplicationContext
;
import
org.eclipse.jdt.core.IJavaProject
;
import
org.eclipse.jdt.core.JavaCore
;
import
fr.inria.diverse.cloning.materialgenerator.start.Start
;
/**
* This class controls all aspects of the application's execution
*/
public
class
Application
implements
IApplication
{
/*
*
*
* (non-Javadoc)
*
* @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app. IApplicationContext)
*/
public
Object
start
(
IApplicationContext
context
)
throws
Exception
{
String
[]
args
=
(
String
[])
context
.
getArguments
().
get
(
IApplicationContext
.
APPLICATION_ARGS
);
// Specifying arguments
OptionParser
parser
=
new
OptionParser
();
OptionSpec
<
File
>
ecoreFilesOption
=
parser
.
accepts
(
"ecoreFiles"
,
"The ecore files describing the metamodel."
)
.
withRequiredArg
().
required
().
describedAs
(
"path1,path2,..."
).
ofType
(
File
.
class
)
.
withValuesSeparatedBy
(
","
).
required
();
OptionSpec
<
File
>
emfProjectFolderOption
=
parser
.
accepts
(
"emfProjectFolder"
,
"The folder of the eclipse java project with generated emf code."
)
.
withRequiredArg
().
required
().
describedAs
(
"path"
).
ofType
(
File
.
class
).
required
();
OptionSpec
<
String
>
metamodelNameOption
=
parser
.
accepts
(
"metamodelName"
,
"The name of the metamodel."
)
.
withRequiredArg
().
required
().
ofType
(
String
.
class
).
required
();
OptionSpec
<?>
emfGenerationOption
=
parser
.
accepts
(
"generateEMFcode"
,
"Whether the EMF model code should be generated, with appropriate super types for classes."
);
try
{
// Parsing arguments (throws an error if problem)
OptionSet
options
=
parser
.
parse
(
args
);
List
<
File
>
ecoreFiles
=
options
.
valuesOf
(
ecoreFilesOption
);
Set
<
File
>
ecoreFilesSet
=
new
HashSet
<
File
>(
ecoreFiles
);
File
emfProjectFolder
=
options
.
valueOf
(
emfProjectFolderOption
);
String
metamodelName
=
options
.
valueOf
(
metamodelNameOption
);
boolean
emfGen
=
options
.
has
(
emfGenerationOption
);
// Creating a "fake" java project from a real existing eclipse java // project on the filesystem
IProjectDescription
description
=
ResourcesPlugin
.
getWorkspace
().
loadProjectDescription
(
new
Path
(
new
File
(
emfProjectFolder
,
".project"
).
getAbsolutePath
()));
IProject
project
=
ResourcesPlugin
.
getWorkspace
().
getRoot
().
getProject
(
description
.
getName
());
project
.
delete
(
false
,
true
,
null
);
project
.
create
(
description
,
null
);
project
.
open
(
null
);
IJavaProject
javaProject
=
JavaCore
.
create
(
project
);
Start
.
start
(
ecoreFilesSet
,
metamodelName
,
javaProject
,
emfGen
);
}
catch
(
OptionException
e
)
{
System
.
out
.
println
(
"Invalid options: "
+
e
.
getMessage
());
parser
.
printHelpOn
(
System
.
out
);
}
return
IApplication
.
EXIT_OK
;
}
/*
* (non-Javadoc)
*
* @see org.eclipse.equinox.app.IApplication#stop()
*/
public
void
stop
()
{
// nothing to do
}
}
moclodash/fr.inria.diverse.cloning.materialgenerator/.classpath
0 → 100644
View file @
8f8ce760
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.pde.core.requiredPlugins"
/>
<classpathentry
kind=
"src"
path=
"src"
/>
<classpathentry
combineaccessrules=
"false"
kind=
"src"
path=
"/fr.inria.diverse.cloning.runtime"
/>
<classpathentry
kind=
"output"
path=
"bin"
/>
</classpath>
Prev
1
2
3
4
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment