To work with Silk Central, ensure that you have configured a valid Silk Central location. For additional information, see Integrating Silk4J with Silk Central.
To upload keyword libraries from Silk4J projects that were created with Silk Test 15.5, you need to edit the build.xml file of the project.
<fileset dir="Keyword Assets" includes="**/*.kwd" erroronmissingdir="false" />
<target name="build.keyword.library" depends="compile"> <java classname="com.borland.silk.kwd.library.docbuilder.DocBuilder" fork="true"> <classpath refid="project.classpath" /> <arg value="AutoQuote Silk4J Library" /> <arg value="${output}" /> <arg value="${output}/library.zip" /> </java> </target>
The new build.xml file should look like the following:
<?xml version="1.0" encoding="UTF-8"?> <project name="AutoQuote" default="compile"> <property name="src" value="src" /> <property name="bin" value="build" /> <property name="output" value="output" /> <property name="lib" value="lib" /> <property name="buildlib" value="buildlib" /> <path id="project.classpath"> <fileset dir="${lib}" includes="*.jar" excludes="*source*" /> <fileset dir="${buildlib}" includes="*.jar" excludes="*source*" /> </path> <target name="clean"> <delete dir="${output}" /> </target> <target name="compile" depends="clean"> <mkdir dir="${output}" /> <delete dir="${bin}" /> <mkdir dir="${bin}" /> <componentdef name="ecj" classname="org.eclipse.jdt.core.JDTCompilerAdapter" classpathref="project.classpath" /> <javac srcdir="${src}" destdir="${bin}" debug="true" source="1.7" target="1.7" encoding="utf-8" includeantruntime="false"> <classpath refid="project.classpath" /> <ecj /> </javac> <jar destfile="${output}/tests.jar" > <fileset dir="${bin}" includes="**/*.class" /> <fileset dir="${src}" includes="**/*" excludes="**/*.java" /> <fileset dir="Object Maps" includes="**/*.objectmap" erroronmissingdir="false" /> <fileset dir="Image Assets" includes="**/*.imageasset" erroronmissingdir="false" /> <fileset dir="Verifications" includes="**/*.verification" erroronmissingdir="false" /> <fileset dir="Keyword Assets" includes="**/*.kwd" erroronmissingdir="false" /> </jar> <copy todir="${output}" overwrite="true"> <fileset dir="${lib}" includes="*.jar" excludes="*source*" /> </copy> <delete dir="${bin}" /> </target> <target name="build.keyword.library" depends="compile"> <java classname="com.borland.silk.kwd.library.docbuilder.DocBuilder" fork="true"> <classpath refid="project.classpath" /> <arg value="AutoQuote Silk4J Library" /> <arg value="${output}" /> <arg value="${output}/library.zip" /> </java> </target> </project>