-
Notifications
You must be signed in to change notification settings - Fork 1
/
tasks.py
33 lines (26 loc) · 838 Bytes
/
tasks.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from atelier.invlib import setup_from_tasks
ns = setup_from_tasks(
globals(),
# tolerate_sphinx_warnings=True,
blogref_url="http://luc.lino-framework.org",
revision_control_system='git')
from atelier.jarbuilder import JarBuilder
jb = JarBuilder(
'EIDReader.jar', 'src/eidreader',
'http://timestamp.globalsign.com/scripts/timestamp.dll')
jb.add_lib("libs/eid-applet-service.jar")
jb.add_lib("libs/commons-codec.jar")
jb.add_lib("libs/commons-logging.jar")
try:
from invoke import ctask as task
# before version 0.13 (see http://www.pyinvoke.org/changelog.html)
except ImportError:
from invoke import task
@task
def classes(ctx):
jb.build_classes()
@task(name='jars')
def jars(ctx):
classes(ctx)
jb.build_jar(ctx, 'example', 'mykey')
# jb.build_jar('example/signed', 'codegears')