Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
YoshikoWrapper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Philipp Spohr
YoshikoWrapper
Commits
3307adaf
Commit
3307adaf
authored
7 years ago
by
Philipp Spohr
Browse files
Options
Downloads
Patches
Plain Diff
Back to 0:
Seperate Compilation of C++/Java code for now
parent
63b103f6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
build.gradle
+0
-48
0 additions, 48 deletions
build.gradle
src/main/java/de/hhu/bcs/yoshikoWrapper/internal/CyActivator.java
+1
-1
1 addition, 1 deletion
.../java/de/hhu/bcs/yoshikoWrapper/internal/CyActivator.java
with
1 addition
and
49 deletions
build.gradle
+
0
−
48
View file @
3307adaf
plugins
{
plugins
{
id
'org.ajoberstar.grgit'
version
'1.7.2'
id
'fr.echoes.gradle.cpp'
version
'1.2.9'
id
'maven'
id
'maven'
}
}
//Hacky woraround for conflicting task names with maven and cpp plugin
tasks
.
remove
(
install
)
apply
plugin:
'java'
apply
plugin:
'java'
...
@@ -17,55 +12,12 @@ description = """yoshikoWrapper"""
...
@@ -17,55 +12,12 @@ description = """yoshikoWrapper"""
sourceCompatibility
=
1.8
sourceCompatibility
=
1.8
targetCompatibility
=
1.8
targetCompatibility
=
1.8
def
yoshikoDir
=
'build/yoshikoSource'
/*
Clone task to fetch the required C++ code from the yoshiko repository
*/
task
cloneYoshikoCode
{
description
=
'Fetches the Yoshiko Source from the github repository for further processing'
doLast
{
if
(!(
file
(
yoshikoDir
).
exists
())){
logger
.
info
(
"Yoshiko source files don't exist yet, cloning ..."
)
org
.
ajoberstar
.
grgit
.
Grgit
.
clone
(
dir:
file
(
yoshikoDir
),
uri:
'https://github.com/spqrPh/yoshiko'
)
//TODO: Always checkout a version that is tagged as "stable"
mkdir
yoshikoDir
+
"/build"
}
}
}
task
launchCMake
(
type:
Exec
,
group:
"init"
)
{
workingDir
yoshikoDir
+
"/build"
executable
=
"cmake"
args
".."
}
cpp
{
applicationType
=
"clibrary"
buildTasksEnabled
=
false
exec
.
with
{
execPath
=
yoshikoDir
+
"/build"
compileCppExecPath
=
"make"
compileCppBaseArgs
=
""
compileCppExecWorkingDir
=
yoshikoDir
+
"/build"
}
}
//Task-Chain
launchCMake
.
dependsOn
cloneYoshikoCode
compileCpp
.
dependsOn
launchCMake
compileJava
.
dependsOn
compileCpp
jar
.
dependsOn
compileJava
repositories
{
repositories
{
maven
{
url
"http://code.cytoscape.org/nexus/content/repositories/snapshots/"
}
maven
{
url
"http://code.cytoscape.org/nexus/content/repositories/snapshots/"
}
maven
{
url
"http://code.cytoscape.org/nexus/content/repositories/releases/"
}
maven
{
url
"http://code.cytoscape.org/nexus/content/repositories/releases/"
}
maven
{
url
"http://repo.maven.apache.org/maven2"
}
maven
{
url
"http://repo.maven.apache.org/maven2"
}
}
}
dependencies
{
dependencies
{
compile
group:
'org.osgi'
,
name:
'org.osgi.core'
,
version:
'4.2.0'
compile
group:
'org.osgi'
,
name:
'org.osgi.core'
,
version:
'4.2.0'
compile
group:
'org.cytoscape'
,
name:
'service-api'
,
version:
'3.5.0-RC2'
compile
group:
'org.cytoscape'
,
name:
'service-api'
,
version:
'3.5.0-RC2'
...
...
This diff is collapsed.
Click to expand it.
src/main/java/de/hhu/bcs/yoshikoWrapper/internal/CyActivator.java
+
1
−
1
View file @
3307adaf
...
@@ -8,7 +8,7 @@ public class CyActivator extends AbstractCyActivator {
...
@@ -8,7 +8,7 @@ public class CyActivator extends AbstractCyActivator {
@Override
@Override
public
void
start
(
BundleContext
context
)
throws
Exception
{
public
void
start
(
BundleContext
context
)
throws
Exception
{
//DONOTHINGYET
System
.
loadLibrary
(
"yoshiko"
);
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment