Problems converting to .tini

Marcus Schlechter <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
Hi

I am trying to convert my application to a tini like format using Apache ant 
1.5 and TiniAnt. 
Compiling works just fine. But if i try converting it within a tini task with 
ant, the converting fails with the following output.

Ref outside this class
     [tini] Replaced Ref for: com/dalsemi/onewire/adapter/DSPortAdapter, 
getDeviceContainer, 
(Ljava/lang/String;)Lcom/dalsemi/onewire/container/OneWireContainer;, With 00 
19 01 2b
     [tini] Uncaught exception: Class 
"com/dalsemi/onewire/container/OneWireContainer21" not found.
     [tini] Class "com/dalsemi/onewire/container/OneWireContainer21" not 
found.
     [tini]     at com.dalsemi.tiniconvertor.JiBDB.classTag(JiBDB.java:726)
     [tini]     at 
com.dalsemi.tiniconvertor.PoolEntry.getEntry(PoolEntry.java:497)
     [tini]     at 
com.dalsemi.tiniconvertor.PoolEntry.writeEntry(PoolEntry.java:565)
     [tini]     at 
com.dalsemi.tiniconvertor.ConstantPool.writeEntry(ConstantPool.java:67)
     [tini]     at 
com.dalsemi.tiniconvertor.Disassembler.writeNewClass(Disassembler.java:1838)
     [tini]     at TINIConvertor.getJiBletImage(TINIConvertor.java:210)
     [tini]     at TINIConvertor.WriteJiBlet(TINIConvertor.java:340)
     [tini]     at TINIConvertor.doBuild(TINIConvertor.java:932)
     [tini]     at TINIConvertor.doBuild(TINIConvertor.java:866)
     [tini]     at TINIConvertor.main(TINIConvertor.java:1066)
     [tini]     at TINIConvertor.main(TINIConvertor.java:957)
     [tini]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [tini]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [tini]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [tini]     at java.lang.reflect.Method.invoke(Method.java:324)
     [tini]     at 
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:208)
     [tini]     at 
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:150)
     [tini]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:415)
     [tini]     at 
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:163)
     [tini]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
     [tini]     at net.geeba.ant.Tini.execute(Unknown Source)
     [tini]     at org.apache.tools.ant.Task.perform(Task.java:317)
     [tini]     at org.apache.tools.ant.Target.execute(Target.java:309)
     [tini]     at org.apache.tools.ant.Target.performTasks(Target.java:334)
     [tini]     at 
org.apache.tools.ant.Project.executeTarget(Project.java:1306)
     [tini]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371)
     [tini]     at 
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
     [tini]     at org.apache.tools.ant.Task.perform(Task.java:317)
     [tini]     at org.apache.tools.ant.Target.execute(Target.java:309)
     [tini]     at org.apache.tools.ant.Target.performTasks(Target.java:334)
     [tini]     at 
org.apache.tools.ant.Project.executeTarget(Project.java:1306)
     [tini]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371)
     [tini]     at org.apache.tools.ant.Task.perform(Task.java:317)
     [tini]     at org.apache.tools.ant.Target.execute(Target.java:309)
     [tini]     at org.apache.tools.ant.Target.performTasks(Target.java:334)
     [tini]     at 
org.apache.tools.ant.Project.executeTarget(Project.java:1306)
     [tini]     at 
org.apache.tools.ant.Project.executeTargets(Project.java:1250)
     [tini]     at org.apache.tools.ant.Main.runBuild(Main.java:610)
     [tini]     at org.apache.tools.ant.Main.start(Main.java:196)
     [tini]     at org.apache.tools.ant.Main.main(Main.java:235)
     [tini] Class "com/dalsemi/onewire/container/OneWireContainer21" not 
found.

I am using the following task to compile:
 <javac srcdir="${src.dir}"
     53         destdir="${build.dir}"
     54         target="1.1"
     55         nowarn="off"
     56         debug="off"
     57         optimize="off"
     58         deprecation="on"
     59         classpath="${classpath_id}"
     60         
bootclasspath="${tini.dist}/tini.jar;{tini.dist}/owapi_dependencies_TINI_001.j
ar"
     61         includes="de/tiniproject/**"
     62         />

and this for converting.
<tini mainclass="de.tiniproject.temperature.TemperatureMain"
     65         classpath="${tini.dist}/tini.jar"
     66         database="${tini.db}"
     67         dependencyfile="${owapi_dep.txt}"
     68         outputfile="${project.tini.output.dir}/TemperatureMain.tini"
     69         verbose="true">
     70         <convert dir="${build.dir}" includes="**/*.class"/>
     71         <dependpath>
     72         <pathelement 
location="${tini.dist}/owapi_dependencies_TINI_001.jar;${dependen
cy.classpath}" />
     73         </dependpath>
     74         </tini>

compile and convert belongs to one target in my build.xml.

I am using one build.xml file which invokes the build.xml above in the single 
projcts directories. In this master build.xml file i am setting the following 
target.  

<target name="init" depends="validate">
        <echo message="build.path ist auf ${tini.ant}"/>
        <available property="tiniant.ok" classname="net.geeba.ant.Tini" />
        <taskdef name="tini" classpath="${tini.ant}" 
classname="net.geeba.ant.Tini" />
        <property name="classpath" value="${classpath_id}" />
</target>

and later on i am invoking 

<target name="build-all" depends="init">
        <property name="build.path" refid="build.path" />
        <ant antfile="src/de/tiniproject/temperature/build.xml" />
</target>

in this master 


What am i doing wrong. I am running a linux box. Compiling with java 1.4.1.  

Many thanks in advance

marcus schlechter


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.