Note: information on this page refers to Ceylon 1.0, not to the current release.
<ceylon-import-jar>
Ant task
Usage
Note: You must declare the tasks with a <typedef>
.
To import the example-foo-1.1.jar
file in a Ceylon repository residing
in the build
directory as version 1.1 of module com.example.foo
:
<target name="import" depends="ceylon-ant-taskdefs">
<ceylon-import-jar jar="example-foo-1.1.jar"
module="com.example.foo/1.1">
<rep url="build"/>
</ceylon-import-jar>
</target>
Description
The <ceylon-import-jar>
ant task makes it possible to import a legacy Java jar file into
a Ceylon repository as a module. Dependencies for the imported module can be specified
by making use of module descriptor XML or property files which are described in the section
on legacy modules.
Parameters
Attribute | Description | Required |
---|---|---|
module |
The module and version to use for the imported jar file. Ex: `com.example.foo/1.1`. | Yes |
jar |
The path to the jar file to import. Ex: `lib/example-foo-1.1.jar`. | Yes |
descriptor |
A path to an optional desciptor XML or properties file. | No |
out |
The output module repository (which must be publishable). | No, default is modules |
user |
The user name to use when connecting to the output repository. Only used for HTTP output repositories. | No |
pass |
The password to use when connecting to the output repository. Only used for HTTP output repositories. | No |
verbose |
Whether the documentation generator should emit verbose logging information. The zero or more of the following flags can be passed separated by commas: 'all' or 'loader'. If you do not pass a flag 'all' will be assumed. | No |
See also
- How to declare the tasks with a
<typedef>
. - Descriptor files for legacy modules