示例#1
0
from osv.modules import api

api.require('java')

default = api.run_java(classpath=['/java-example'], args=['Hello'])
示例#2
0
default = api.run_java(
    jvm_args=[
        #       '-ea',
        "-javaagent:/usr/cassandra/lib/jamm-0.2.6.jar",
        "-XX:+CMSClassUnloadingEnabled",
        "-XX:+UseThreadPriorities",
        "-XX:ThreadPriorityPolicy=42",
        "-Xms1918M",
        "-Xmx1918M",
        "-Xmn479M",
        "-XX:+HeapDumpOnOutOfMemoryError",
        "-Xss256k",
        "-XX:StringTableSize=1000003",
        "-XX:+UseParNewGC",
        "-XX:+UseConcMarkSweepGC",
        "-XX:+CMSParallelRemarkEnabled",
        "-XX:SurvivorRatio=8",
        "-XX:MaxTenuringThreshold=1",
        "-XX:CMSInitiatingOccupancyFraction=75",
        "-XX:+UseCMSInitiatingOccupancyOnly",
        "-XX:+UseTLAB",
        #       '-XX:+CMSParallelInitialMarkEnabled',
        #       '-XX:+CMSEdenChunksRecordAlways',
        "-XX:+UseCondCardMark",
        "-Djava.rmi.server.hostname=$OSV_IP",
        "-Djava.net.preferIPv4Stack=true",
        "-Dcom.sun.management.jmxremote.port=7199",
        "-Dcom.sun.management.jmxremote.rmi.port=7199",
        "-Dcom.sun.management.jmxremote.ssl=false",
        "-Dcom.sun.management.jmxremote.authenticate=false",
        "-Dlogback.configurationFile=logback.xml",
        "-Dcassandra.logdir=/usr/cassandra/logs",
        "-Dcassandra.storagedir=/usr/cassandra/data",
        "-Dcassandra-foreground=yes",
    ],
    classpath=["/usr/cassandra/conf/", "/usr/cassandra/lib/*"],
    args=["org.apache.cassandra.service.CassandraDaemon"],
)
示例#3
0
from osv.modules import api

api.require('java')

default = api.run_java(args=['-jar', 'jython.jar', '-m', 'SimpleHTTPServer', '8888'])
示例#4
0
from osv.modules import api

api.require('java')

default = api.run_java(classpath=['/java-httpserver'], args=['HttpServerApp'])
示例#5
0
from osv.modules import api

api.require('java')

_classpath = ["/db-derby/lib/derby.jar", "/db-derby/lib/derbynet.jar", "/db-derby/lib/derbytools.jar", "/db-derby/lib/derbyclient.jar"]
_args = ["-Djava.security.policy=/db-derby/security.policy", "org.apache.derby.drda.NetworkServerControl", "start"]

default = api.run_java(classpath = _classpath, args = _args)

示例#6
0
文件: module.py 项目: 151706061/osv
from osv.modules import api
from osv.modules.filemap import FileMap

api.require('java')

_jar = '/tests/java/tests.jar'
_isolates_jar = '/tests/java/isolates.jar'

usr_files = FileMap()
usr_files.add('${OSV_BASE}/java/tests/target/runjava-tests.jar').to(_jar)
usr_files.add('${OSV_BASE}/java/tests-isolates/target/tests-isolates-jar-with-dependencies.jar').to(_isolates_jar)

usr_files.add('${OSV_BASE}/java/tests/target/classes/tests/ClassPutInRoot.class').to('/tests/ClassPutInRoot.class')

usr_files.add('${OSV_BASE}/java/tests-jre-extension/target/tests-jre-extension.jar') \
    .to('/usr/lib/jvm/java/jre/lib/ext/tests-jre-extension.jar')

default = api.run_java(classpath=[_jar, _isolates_jar],
    args=['-Disolates.jar=' + _isolates_jar, 'org.junit.runner.JUnitCore', 'io.osv.AllTests'])
示例#7
0
from osv.modules import api

default = api.run_java(jvm_args=['-javaagent:/usr/newrelic.jar'])
示例#8
0
from osv.modules import api

api.require('java')

default = api.run_java(classpath=['/lib/js.jar'],
                       args=['-jar', '/run.jar', '/examples/httpserver.js'])
示例#9
0
文件: module.py 项目: kinwin-ustc/osv
from osv.modules import api
from osv.modules.filemap import FileMap

api.require("java")

_jar = "/tests/java/tests.jar"
_isolates_jar = "/tests/java/isolates.jar"

usr_files = FileMap()
usr_files.add("${OSV_BASE}/java/tests/target/runjava-tests.jar").to(_jar)
usr_files.add("${OSV_BASE}/java/tests-isolates/target/tests-isolates-jar-with-dependencies.jar").to(_isolates_jar)

usr_files.add("${OSV_BASE}/java/tests-jre-extension/target/tests-jre-extension.jar").to(
    "/usr/lib/jvm/java/jre/lib/ext/tests-jre-extension.jar"
)

default = api.run_java(
    classpath=[_jar, _isolates_jar],
    args=["-Disolates.jar=" + _isolates_jar, "org.junit.runner.JUnitCore", "io.osv.AllTests"],
)
示例#10
0
from osv.modules import api

api.require('java')

default = api.run_java(args=['-jar', '/js.jar'])
示例#11
0
from osv.modules import api

api.require('java')

default = api.run_java(args=['-jar', 'dropwizard-example.jar', 'server', 'example.yml'])
示例#12
0
from osv.modules import api

default = api.run_java(
    jvm_args=[
        '-Xms1G',
        '-Xmx1G',
        '-Djava.util.logging.config.file=/activemq/conf/logging.properties',
        '-Djava.security.auth.login.config=/activemq/conf/login.config',
        '-Dcom.sun.management.jmxremote',
        '-Djava.awt.headless=true',
        '-Djava.io.tmpdir=/activemq/tmp',
        '-Dactivemq.classpath=/activemq/conf',
        '-Dactivemq.home=/activemq',
        '-Dactivemq.base=/activemq',
        '-Dactivemq.conf=/activemq/conf',
        '-Dactivemq.data=/activemq/data',
    ],
    args=['-jar /activemq/bin/activemq.jar start']
)
示例#13
0
#
# Copyright (C) 2014 Cloudius Systems, Ltd.
#
# This work is open source software, licensed under the terms of the
# BSD license as described in the LICENSE file in the top-level directory.
#

from osv.modules import api

api.require('scala')

classpath = ['/usr/share/scala/lib/scala-library.jar', 'HelloWorld.jar']

default = api.run_java(
    classpath=classpath,
    args=[
        "HelloWorld",
    ],
)
示例#14
0
from osv.modules import api

api.require('java')

default = api.run_java(jvm_args=['-Dsupervisor=osv'],
                       classpath=['/stormy-java'],
                       args=['Supervisor', '5'])
示例#15
0
from osv.modules import api

api.require('java')

default = api.run_java(classpath=['/'], args=['Main'])
示例#16
0
default = api.run_java(
    jvm_args=[
        '-javaagent:/usr/cassandra/lib/jamm-0.2.5.jar',
        '-XX:+UseThreadPriorities',
        # '-XX:ThreadPriorityPolicy=42',
        '-Xms1968M',
        '-Xmx1968M',
        '-Xmn400M',
        '-XX:+HeapDumpOnOutOfMemoryError',
        '-Xss228k',
        '-XX:+UseParNewGC',
        '-XX:+UseConcMarkSweepGC',
        '-XX:+CMSParallelRemarkEnabled',
        '-XX:SurvivorRatio=8',
        '-XX:MaxTenuringThreshold=1',
        '-XX:CMSInitiatingOccupancyFraction=75',
        '-XX:+UseCMSInitiatingOccupancyOnly',
        '-XX:+UseTLAB',
        '-XX:+UseCondCardMark',
        '-Djava.net.preferIPv4Stack=true',
        '-Djava.rmi.server.hostname=192.168.122.89',
        '-Dcom.sun.management.jmxremote',
        '-Dcom.sun.management.jmxremote.port=7199',
        '-Dcom.sun.management.jmxremote.ssl=false',
        '-Dcom.sun.management.jmxremote.authenticate=false',
        '-Dlog4j.configuration=log4j-server.properties',
        '-Dlog4j.defaultInitOverride=true',
        '-Dcassandra-foreground=yes',
        '-Djna.nounpack=true',
        '-Djna.debug_load=true',
        '-Djna.debug_load.jna=true'
    ],
    classpath=['/usr/cassandra/conf/', '/usr/cassandra/lib/*'],
    args=['org.apache.cassandra.service.CassandraDaemon'])
示例#17
0
文件: module.py 项目: abn/osv-apps
from osv.modules import api

default = api.run_java(jvm_args=[
    '-Xms128M',
    '-Xmx2048m',
    '-XX:+UnlockDiagnosticVMOptions',
    '-XX:+UnsyncloadClass',
    '-XX:MaxPermSize=512m',
    '-Dcom.sun.management.jmxremote',
    '-Djava.endorsed.dirs=/opendaylight/lib/endorsed',
    '-Djava.ext.dirs=/usr/lib/jvm/java/jre/lib/ext:/usr/java/packages/lib/ext:/opendaylight/lib/ext',
    '-Dkaraf.instances=/opendaylight/instances',
    '-Dkaraf.home=/opendaylight',
    '-Dkaraf.base=/opendaylight',
    '-Dkaraf.data=/opendaylight/data',
    '-Dkaraf.etc=/opendaylight/etc',
    '-Djava.io.tmpdir=/opendaylight/data/tmp',
    '-Djava.util.logging.config.file=/opendaylight/etc/java.util.logging.properties',
    '-Dkaraf.startLocalConsole=true',
    '-Dkaraf.startRemoteShell=true',
],
                       classpath=[
                           '/opendaylight/lib/karaf.branding-1.0.3-Helium-SR3.jar',
                           '/opendaylight/lib/karaf-jaas-boot.jar',
                           '/opendaylight/lib/karaf.jar',
                           '/opendaylight/lib/karaf-jmx-boot.jar',
                           '/opendaylight/lib/karaf-org.osgi.core.jar',
                       ],
                       args=['org.apache.karaf.main.Main'])
示例#18
0
from osv.modules import api

api.require('java')

default = api.run_java(
    args=['-jar', 'dropwizard-example.jar', 'server', 'example.yml'])
示例#19
0
from osv.modules import api

api.require('java')

default = api.run_java(args=['-jar', '/usr/oracle/kv-3.0.5/lib/kvstore.jar', 'kvlite', '-host', '192.168.122.89'])
示例#20
0
from osv.modules import api

api.require('java')

default = api.run_java(args=['-jar', 'start.jar'])
示例#21
0
from osv.modules import api

default = api.run_java(args=['-jar', '/apache-sshd-example.jar'])

示例#22
0
from osv.modules import api

api.require('java')

default = api.run_java(args=['-jar', 'jruby-complete.jar', '-I./', '-rjruby-extensions.jar', 'example.rb'])
示例#23
0
from osv.modules import api

api.require('java')

default = api.run_java(
        jvm_args=['-Dsupervisor=osv'],
        classpath=['/stormy-java'], 
        args=['Supervisor', '5'])
示例#24
0
default = api.run_java(
    jvm_args=[
        #       '-ea',
        '-javaagent:/usr/cassandra/lib/jamm-0.2.6.jar',
        '-XX:+CMSClassUnloadingEnabled',
        '-XX:+UseThreadPriorities',
        '-XX:ThreadPriorityPolicy=42',
        '-Xms1918M',
        '-Xmx1918M',
        '-Xmn479M',
        '-XX:+HeapDumpOnOutOfMemoryError',
        '-Xss256k',
        '-XX:StringTableSize=1000003',
        '-XX:+UseParNewGC',
        '-XX:+UseConcMarkSweepGC',
        '-XX:+CMSParallelRemarkEnabled',
        '-XX:SurvivorRatio=8',
        '-XX:MaxTenuringThreshold=1',
        '-XX:CMSInitiatingOccupancyFraction=75',
        '-XX:+UseCMSInitiatingOccupancyOnly',
        '-XX:+UseTLAB',
        #       '-XX:+CMSParallelInitialMarkEnabled',
        #       '-XX:+CMSEdenChunksRecordAlways',
        '-XX:+UseCondCardMark',
        '-Djava.rmi.server.hostname=$OSV_IP',
        '-Djava.net.preferIPv4Stack=true',
        '-Dcom.sun.management.jmxremote.port=7199',
        '-Dcom.sun.management.jmxremote.rmi.port=7199',
        '-Dcom.sun.management.jmxremote.ssl=false',
        '-Dcom.sun.management.jmxremote.authenticate=false',
        '-Dlogback.configurationFile=logback.xml',
        '-Dcassandra.logdir=/usr/cassandra/logs',
        '-Dcassandra.storagedir=/usr/cassandra/data',
        '-Dcassandra-foreground=yes'
    ],
    classpath=['/usr/cassandra/conf/', '/usr/cassandra/lib/*'],
    args=['org.apache.cassandra.service.CassandraDaemon'])
示例#25
0
from osv.modules import api

api.require('java8')

_catalina_base = "/usr/tomcat"
_catalina_home = _catalina_base
_catalina_tmpdir = "/tmp/catalina"

_classpath = [_catalina_home + "/bin/bootstrap.jar"]

_logging_config = [
    "-Djava.util.logging.config.file=%s/conf/logging.properties" %
    _catalina_base,
    "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
]
_classpath.append("%s/bin/tomcat-juli.jar" % _catalina_base)

default = api.run_java(classpath=_classpath,
                       args=_logging_config + [
                           "-Dcatalina.base=%s" % _catalina_base,
                           "-Dcatalina.home=%s" % _catalina_base,
                           "-Djava.io.tmpdir=%s" % _catalina_tmpdir,
                           "org.apache.catalina.startup.Bootstrap", "start"
                       ])
示例#26
0
default = api.run_java(
    jvm_args=[
        '-Xms128M',
        '-Xmx2048m',
        '-XX:+UnlockDiagnosticVMOptions',
        '-XX:+UnsyncloadClass',
        '-XX:MaxPermSize=512m',
        '-Dcom.sun.management.jmxremote',
        '-Djava.endorsed.dirs=/opendaylight/lib/endorsed',
        '-Djava.ext.dirs=/usr/lib/jvm/java/jre/lib/ext:/usr/java/packages/lib/ext:/opendaylight/lib/ext',
        '-Dkaraf.instances=/opendaylight/instances',
        '-Dkaraf.home=/opendaylight',
        '-Dkaraf.base=/opendaylight',
        '-Dkaraf.data=/opendaylight/data',
        '-Dkaraf.etc=/opendaylight/etc',
        '-Djava.io.tmpdir=/opendaylight/data/tmp',
        '-Djava.util.logging.config.file=/opendaylight/etc/java.util.logging.properties',
        '-Dkaraf.startLocalConsole=true',
        '-Dkaraf.startRemoteShell=true',
    ],
    classpath=[
        '/opendaylight/lib/karaf.branding-1.0.3-Helium-SR3.jar',
        '/opendaylight/lib/karaf-jaas-boot.jar',
        '/opendaylight/lib/karaf.jar',
        '/opendaylight/lib/karaf-jmx-boot.jar',
        '/opendaylight/lib/karaf-org.osgi.core.jar',
    ],
    args=[
        'org.apache.karaf.main.Main'
    ]
)
示例#27
0
from osv.modules import api

api.require('java')

default = api.run_java(args=[
    '-jar', '/usr/oracle/kv-3.0.5/lib/kvstore.jar', 'kvlite', '-host',
    '192.168.122.89'
])
示例#28
0
文件: module.py 项目: asias/osv-apps
default = api.run_java(
    jvm_args=[
        '-javaagent:/usr/cassandra/lib/jamm-0.2.5.jar',
        '-XX:+UseThreadPriorities',
        # '-XX:ThreadPriorityPolicy=42',
        '-Xms1968M',
        '-Xmx1968M',
        '-Xmn400M',
        '-XX:+HeapDumpOnOutOfMemoryError',
        '-Xss228k',
        '-XX:+UseParNewGC',
        '-XX:+UseConcMarkSweepGC',
        '-XX:+CMSParallelRemarkEnabled',
        '-XX:SurvivorRatio=8',
        '-XX:MaxTenuringThreshold=1',
        '-XX:CMSInitiatingOccupancyFraction=75',
        '-XX:+UseCMSInitiatingOccupancyOnly',
        '-XX:+UseTLAB',
        '-XX:+UseCondCardMark',
        '-Djava.net.preferIPv4Stack=true',
        '-Djava.rmi.server.hostname=192.168.122.89',
        '-Dcom.sun.management.jmxremote',
        '-Dcom.sun.management.jmxremote.port=7199',
        '-Dcom.sun.management.jmxremote.ssl=false',
        '-Dcom.sun.management.jmxremote.authenticate=false',
        '-Dlog4j.configuration=log4j-server.properties',
        '-Dlog4j.defaultInitOverride=true',
        '-Dcassandra-foreground=yes',
        '-Djna.nounpack=true',
        '-Djna.debug_load=true',
        '-Djna.debug_load.jna=true'
    ],
    classpath=[
        '/usr/cassandra/conf/',
        '/usr/cassandra/lib/*'
    ],
    args=['org.apache.cassandra.service.CassandraDaemon'])
示例#29
0
from osv.modules import api

_catalina_base = "/usr/tomee"
_catalina_home = _catalina_base
_catalina_tmpdir = _catalina_base + "/temp"

_classpath = [_catalina_home + "/bin/bootstrap.jar"]

_logging_config = [
    "-Djava.util.logging.config.file=%s/conf/logging.properties" % _catalina_base,
    "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
]
_classpath.append("%s/bin/tomcat-juli.jar" % _catalina_base)

default = api.run_java(
        classpath=_classpath,
        args=_logging_config + [
            "-Dcatalina.base=%s" % _catalina_base,
            "-Dcatalina.home=%s" % _catalina_base,
            "-Djava.io.tmpdir=%s" % _catalina_tmpdir,
            "org.apache.catalina.startup.Bootstrap", "start"
        ])
示例#30
0
from osv.modules import api

api.require('java')

default = api.run_java(args=['-jar jython.jar /app/app.py'])
示例#31
0
default = api.run_java(
    args=["org.apache.karaf.main.Main"],
    classpath=[
        "/onos/apache-karaf-3.0.3/lib/karaf-jaas-boot.jar",
        "/onos/apache-karaf-3.0.3/lib/karaf.jar",
        "/onos/apache-karaf-3.0.3/lib/karaf-jmx-boot.jar",
        "/onos/apache-karaf-3.0.3/lib/karaf-org.osgi.core.jar",
    ],
    jvm_args=[
        "-Xms128M",
        "-Xmx512M",
        "-XX:+UnlockDiagnosticVMOptions",
        "-XX:+UnsyncloadClass",
        "-Dcom.sun.management.jmxremote",
        "-Djava.endorsed.dirs=/usr/lib/jvm/java/jre/lib/endorsed"
        ":/usr/lib/jvm/java/lib/endorsed"
        ":/onos/apache-karaf-3.0.3/lib/endorsed",
        "-Djava.ext.dirs=/usr/lib/jvm/java/jre/lib/ext:/usr/lib/jvm/java/lib/ext:/onos/apache-karaf-3.0.3/lib/ext",
        "-Dkaraf.instances=/onos/apache-karaf-3.0.3/instances",
        "-Dkaraf.home=/onos/apache-karaf-3.0.3",
        "-Dkaraf.base=/onos/apache-karaf-3.0.3",
        "-Dkaraf.data=/onos/apache-karaf-3.0.3/data",
        "-Dkaraf.etc=/onos/apache-karaf-3.0.3/etc",
        "-Djava.io.tmpdir=/onos/apache-karaf-3.0.3/data/tmp",
        "-Djava.util.logging.config.file=/onos/apache-karaf-3.0.3/etc/java.util.logging.properties",
        "-Dkaraf.startLocalConsole=true",
        "-Dkaraf.startRemoteShell=true",
    ],
)
示例#32
0
default = api.run_java(
    args=['org.apache.karaf.main.Main'],
    classpath=[
        '/onos/apache-karaf-3.0.2/lib/karaf-jaas-boot.jar',
        '/onos/apache-karaf-3.0.2/lib/karaf.jar',
        '/onos/apache-karaf-3.0.2/lib/karaf-jmx-boot.jar',
        '/onos/apache-karaf-3.0.2/lib/karaf-org.osgi.core.jar'
    ],
    jvm_args=[
        '-Xms128M',
        '-Xmx512M',
        '-XX:+UnlockDiagnosticVMOptions',
        '-XX:+UnsyncloadClass',
        '-Dcom.sun.management.jmxremote',
        '-Djava.endorsed.dirs=/usr/lib/jvm/java/jre/lib/endorsed'
        ':/usr/lib/jvm/java/lib/endorsed'
        ':/onos/apache-karaf-3.0.2/lib/endorsed',
        '-Djava.ext.dirs=/usr/lib/jvm/java/jre/lib/ext:/usr/lib/jvm/java/lib/ext:/onos/apache-karaf-3.0.2/lib/ext',
        '-Dkaraf.instances=/onos/apache-karaf-3.0.2/instances',
        '-Dkaraf.home=/onos/apache-karaf-3.0.2',
        '-Dkaraf.base=/onos/apache-karaf-3.0.2',
        '-Dkaraf.data=/onos/apache-karaf-3.0.2/data',
        '-Dkaraf.etc=/onos/apache-karaf-3.0.2/etc',
        '-Djava.io.tmpdir=/onos/apache-karaf-3.0.2/data/tmp',
        '-Djava.util.logging.config.file=/onos/apache-karaf-3.0.2/etc/java.util.logging.properties',
        '-Dkaraf.startLocalConsole=true',
        '-Dkaraf.startRemoteShell=true',
    ],

)
示例#33
0
from osv.modules import api

api.require('java')

default = api.run_java(args=[
    '-jar', 'jruby-complete.jar', '-I./', '-rjruby-extensions.jar',
    'example.rb'
])
示例#34
0
#
# Copyright (C) 2014 Cloudius Systems, Ltd.
#
# This work is open source software, licensed under the terms of the
# BSD license as described in the LICENSE file in the top-level directory.
#

from osv.modules import api

api.require('scala')

classpath = ['/usr/share/scala/lib/scala-library.jar', 'HelloWorld.jar']

default = api.run_java(classpath = classpath,
                       args = [
                           "HelloWorld",
                       ],
                   )
示例#35
0
default = api.run_java(
    args=['org.apache.karaf.main.Main'],
    classpath=[
        '/onos/apache-karaf-3.0.3/lib/karaf-jaas-boot.jar',
        '/onos/apache-karaf-3.0.3/lib/karaf.jar',
        '/onos/apache-karaf-3.0.3/lib/karaf-jmx-boot.jar',
        '/onos/apache-karaf-3.0.3/lib/karaf-org.osgi.core.jar'
    ],
    jvm_args=[
        '-Xms128M',
        '-Xmx512M',
        '-XX:+UnlockDiagnosticVMOptions',
        '-XX:+UnsyncloadClass',
        '-Dcom.sun.management.jmxremote',
        '-Djava.endorsed.dirs=/usr/lib/jvm/java/jre/lib/endorsed'
        ':/usr/lib/jvm/java/lib/endorsed'
        ':/onos/apache-karaf-3.0.3/lib/endorsed',
        '-Djava.ext.dirs=/usr/lib/jvm/java/jre/lib/ext:/usr/lib/jvm/java/lib/ext:/onos/apache-karaf-3.0.3/lib/ext',
        '-Dkaraf.instances=/onos/apache-karaf-3.0.3/instances',
        '-Dkaraf.home=/onos/apache-karaf-3.0.3',
        '-Dkaraf.base=/onos/apache-karaf-3.0.3',
        '-Dkaraf.data=/onos/apache-karaf-3.0.3/data',
        '-Dkaraf.etc=/onos/apache-karaf-3.0.3/etc',
        '-Djava.io.tmpdir=/onos/apache-karaf-3.0.3/data/tmp',
        '-Djava.util.logging.config.file=/onos/apache-karaf-3.0.3/etc/java.util.logging.properties',
        '-Dkaraf.startLocalConsole=true',
        '-Dkaraf.startRemoteShell=true',
    ],
)
示例#36
0
from osv.modules import api

api.require('java')

default = api.run_java(classpath=['/lib/js.jar'], args=['-jar', '/run.jar', '/examples/httpserver.js'])
示例#37
0
文件: module.py 项目: zhuweijia/osv
from osv.modules import api
from osv.modules.filemap import FileMap

api.require('java')

_jar = '/tests/java/tests.jar'
_isolates_jar = '/tests/java/isolates.jar'

usr_files = FileMap()
usr_files.add('${OSV_BASE}/java/tests/target/runjava-tests.jar').to(_jar)
usr_files.add(
    '${OSV_BASE}/java/tests-isolates/target/tests-isolates-jar-with-dependencies.jar'
).to(_isolates_jar)

usr_files.add(
    '${OSV_BASE}/java/tests/target/classes/tests/ClassPutInRoot.class').to(
        '/tests/ClassPutInRoot.class')

usr_files.add('${OSV_BASE}/java/tests-jre-extension/target/tests-jre-extension.jar') \
    .to('/usr/lib/jvm/java/jre/lib/ext/tests-jre-extension.jar')

default = api.run_java(classpath=[_jar, _isolates_jar],
                       args=[
                           '-Disolates.jar=' + _isolates_jar,
                           'org.junit.runner.JUnitCore', 'io.osv.AllTests'
                       ])
示例#38
0
from osv.modules import api

api.require('java')

default = api.run_java(
    args=['-jar', 'jython.jar', '-m', 'SimpleHTTPServer', '8888'])