Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[dsdp-mtj-dev] Question About export Antenna build file


Hi Craig,

I am now doing some enhancement about Antenna build files export functionality, to make it can build for multi-target.
I have some question about the old version of the feature. I wonder if you still remember the detail of the implementation and can give me some technical support.

My question is:
1.        About "-mtj-initialize" task in mtj-build.xml file. What is the purpose to make following folder? May I just make that folder without other consideration?

<mkdir dir="${path.build.classes}/_no_export"/>
2.        Class AntennaBuildExporter$BuildClasspathEntryVisitor is quite complex. Can I say that the purposes of this class are:

1, make up the <path> element in mtj-build.xml like this:
   <path id="classpath.Wang_Feng_Test">
      <path location="${path.build.classes}"/>
      <path location="${path.build.classes}/_no_export"/>
      <path location="${project.root.Wang_Feng_Test}/lib/svg.jar"/>
   </path>
   <path id="classpath.MyMidletProject">
      <path location="${path.build.classes}"/>
      <path location="${path.build.classes}/_no_export"/>

   </path>
2, make up the srcdir attribute in <wtkbuild> task, like this:
   <target depends="-mtj-initialize" name="-mtj-build">
      <echo message="Building source files..."/>
      <wtkbuild destdir="${path.build.classes}" encoding="${src.encoding}" source="1.3" sourcepath="" srcdir="${project.root.Wang_Feng_Test}/res">
         <classpath refid="classpath.Wang_Feng_Test"/>
      </wtkbuild>
      <wtkbuild destdir="${path.build.classes}" encoding="${src.encoding}" source="1.3" sourcepath="" srcdir="${project.root.Wang_Feng_Test}/src">
         <classpath refid="classpath.Wang_Feng_Test"/>
      </wtkbuild>

   </target>
3.        BTW, I find that if a project refer another project, the exported build files will fail to build, end with an error say that cannot find a class. I guess it will be hard for an exported ant build file to solve this problem, because the exported Ant build files may have to contain targets that build all the projects in a certain sequence, the sequence is not easy to determine.

Best Regards,
Feng(Marvin) Wang(王峰)

Sybase Software (China) Co., Ltd
Room 1202-1203, Building One,
Zhangjiang Semiconductor Industry Park
3000 Longdong Avenue
Pudong, Shanghai 201203
Tel: +8621-38657441 or 258-7441
email: feng.wang@xxxxxxxxxx

Back to the top