Skip to content

Commit 5e0d3e1

Browse files
committed
The jar now includes the logo, and the Main-Class attribute is set.
1 parent 211c324 commit 5e0d3e1

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

META-INF/MANIFEST.MF

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ Export-Package: matlabcontrol;version="4.4.0",matlabcontrol.demo;version
1111
="4.4.0",matlabcontrol.extensions;uses:=matlabcontrol;version="4.4.0",m
1212
atlabcontrol.internal;version="4.4.0",matlabcontrol.link;uses:=matlabco
1313
ntrol;version="4.4.0"
14+
Main-Class: matlabcontrol.demo.DemoMain
1415
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.6))"

build.gradle

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ dependencies {
3232
testCompile "junit:junit:${VER_JUNIT}"
3333
}
3434

35+
processResources {
36+
from ('src') {
37+
exclude '**/*.java'
38+
}
39+
}
40+
3541
////////////////////
3642
// MATLAB TESTING //
3743
////////////////////
@@ -73,7 +79,8 @@ jar.manifest {
7379
'Bundle-DocURL': "https://github.com/${project.org}/${project.name}",
7480
'Bundle-License': "https://github.com/${project.org}/${project.name}/blob/v${project.version}/LICENSE",
7581
'Import-Package': '!com.mathworks.jmi',
76-
'-includeresource': "matlabcontrol=${sourceSets.main.output.classesDir}/matlabcontrol",
82+
'Main-Class': 'matlabcontrol.demo.DemoMain',
83+
'-includeresource': "matlabcontrol=${sourceSets.main.output.classesDir}/matlabcontrol,${sourceSets.main.output.resourcesDir}",
7784
'-removeheaders': 'Bnd-LastModified,Bundle-Name,Created-By,Tool,Private-Package',
7885
'-savemanifest': project.file('META-INF/MANIFEST.MF'),
7986
)
@@ -222,10 +229,6 @@ task sourcesJar(type: Jar) {
222229
exclude(JMI_STUB)
223230
}
224231

225-
jar {
226-
exclude(JMI_STUB)
227-
}
228-
229232
// Where it's possible to name parameters and methods clearly enough
230233
// that javadoc is not necessary, why make the code bigger?
231234
//

0 commit comments

Comments
 (0)