<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    spark的自留地(ofbiz/eclipse rcp/shark/opentaps)

      BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
      54 Posts :: 0 Stories :: 112 Comments :: 0 Trackbacks
    在Opentaps 1.4版本我將AOP由原來的AspectJ替換為現在Aspectwerkz。結果我自己就首先在64bit的windows系統下遇到ant編譯出錯,現在把解決方法列在這里

    將opentaps/opentaps-common/build-aspects.xml中的weave任務內容替換為以下內容(其實就是把原來的ant的替換jar內容任務分成兩部來執行):

    <!-- ================================================================== --> 
            
    <!-- Weave advice into target jars                                      --> 
            
    <!-- ================================================================== --> 
            
    <target name="weave" depends="detect-dependencies" if="processRequired"> 
              
    <echo message="[build] =========== Start Building Aspect (Weave) ============="/> 
              
    <java classname="org.codehaus.aspectwerkz.compiler.AspectWerkzC" fork="true"> 
                
    <jvmarg value="-Daspectwerkz.definition.file=${aopConfig}"/> 
                
    <jvmarg value="-Daspectwerkz.transform.filter=no"/> 
                
    <!-- <jvmarg value="-Daspectwerkz.transform.verbose=true"/> --> 
                
    <!-- <jvmarg value="-Daspectwerkz.transform.details=true"/> --> 
                
    <arg value="-verify"/> 
                
    <classpath refid="local.class.path" /> 
                
    <classpath> 
                  
    <pathelement path="${build.dir}/classes/common"/> 
                
    </classpath> 
                
    <!-- below is the jars to post-process --> 
                
    <arg value="${ofbiz.dir}/framework/entity/build/lib/ofbiz-entity.jar"/> 
              
    </java> 
              
    <java classname="org.codehaus.aspectwerkz.compiler.AspectWerkzC" fork="true"> 
                
    <jvmarg value="-Daspectwerkz.definition.file=${aopConfig}"/> 
                
    <jvmarg value="-Daspectwerkz.transform.filter=no"/> 
                
    <!-- <jvmarg value="-Daspectwerkz.transform.verbose=true"/> --> 
                
    <!-- <jvmarg value="-Daspectwerkz.transform.details=true"/> --> 
                
    <arg value="-verify"/> 
                
    <classpath refid="local.class.path" /> 
                
    <classpath> 
                  
    <pathelement path="${build.dir}/classes/common"/> 
                
    </classpath> 
                
    <!-- below is the jars to post-process, if these jar not effect each other you can put them in same pos, else please seperate them into another task --> 
                
    <arg value="${ofbiz.dir}/framework/common/build/lib/ofbiz-common.jar"/> 
              
    </java> 
              
    <java classname="org.codehaus.aspectwerkz.compiler.AspectWerkzC" fork="true"> 
                
    <jvmarg value="-Daspectwerkz.definition.file=${aopConfig}"/> 
                
    <jvmarg value="-Daspectwerkz.transform.filter=no"/> 
                
    <!-- <jvmarg value="-Daspectwerkz.transform.verbose=true"/> --> 
                
    <!-- <jvmarg value="-Daspectwerkz.transform.details=true"/> --> 
                
    <arg value="-verify"/> 
                
    <classpath refid="local.class.path" /> 
                
    <classpath> 
                  
    <pathelement path="${build.dir}/classes/common"/> 
                
    </classpath> 
                
    <!-- below is the jars to post-process --> 
                
    <arg value="${ofbiz.dir}/applications/order/build/lib/ofbiz-order.jar"/> 
              
    </java> 
              
    <jar jarfile="${lib.dir}/${name}.jar" update="true" basedir="${build.dir}/classes/common" includes="org/opentaps/aspect/secas/**" /> 
                
    <!-- put aop.xml into target jar META-INF dir --> 
                 
    <mkdir dir="${build.dir}/classes/META-INF" /> 
                 
    <copy file="${aopConfig}" tofile="${build.dir}/classes/META-INF/aop.xml" overwrite="true"/> 
               
    <!-- create new jar with aop.xml, then copy it to orign location, using these for avoid unable rename error on windows 64bit system--> 
                   
    <zip destfile="${lib.dir}/ofbiz-entity.jar"> 
                   
    <zipfileset src="${ofbiz.dir}/framework/entity/build/lib/ofbiz-entity.jar"/> 
                   
    <fileset dir="${build.dir}/classes/"> 
                     
    <include name="META-INF/aop.xml"/> 
                   
    </fileset> 
                   
    </zip> 
               
    <delete file="${ofbiz.dir}/framework/entity/build/lib/ofbiz-entity.jar" failonerror="false"/> 
                   
    <move file="${lib.dir}/ofbiz-entity.jar" tofile="${ofbiz.dir}/framework/entity/build/lib/ofbiz-entity.jar"/> 

                   
    <zip destfile="${lib.dir}/ofbiz-common.jar"> 
                   
    <zipfileset src="${ofbiz.dir}/framework/common/build/lib/ofbiz-common.jar"/> 
                   
    <fileset dir="${build.dir}/classes/"> 
                     
    <include name="META-INF/aop.xml"/> 
                   
    </fileset> 
                   
    </zip> 
               
    <delete file="${ofbiz.dir}/framework/common/build/lib/ofbiz-common.jar" failonerror="false"/> 
                   
    <move file="${lib.dir}/ofbiz-common.jar" tofile="${ofbiz.dir}/framework/common/build/lib/ofbiz-common.jar"/> 

               
    <zip destfile="${lib.dir}/ofbiz-order.jar"> 
                   
    <zipfileset src="${ofbiz.dir}/applications/order/build/lib/ofbiz-order.jar"/> 
                   
    <fileset dir="${build.dir}/classes/"> 
                     
    <include name="META-INF/aop.xml"/> 
                   
    </fileset> 
                   
    </zip> 
               
    <delete file="${ofbiz.dir}/applications/order/build/lib/ofbiz-order.jar" failonerror="false"/> 
                   
    <move file="${lib.dir}/ofbiz-order.jar" tofile="${ofbiz.dir}/applications/order/build/lib/ofbiz-order.jar"/> 

                 
    <echo message="[build] =========== Done Building Aspect (Weave) =============="/> 
               
    </target>


    以上方法已經在opentaps wiki [http://www.opentaps.org/docs/index.php/General_Installation_of_Opentaps#Build_Aspect_class_Errors] 中加上過了。
    posted on 2011-02-09 22:18 shanghai_spark 閱讀(1633) 評論(0)  編輯  收藏 所屬分類: opentaps
    主站蜘蛛池模板: 免费无码看av的网站| 国产成人免费午夜在线观看 | 成人黄色免费网址| 亚洲一区中文字幕久久| 久久久久久夜精品精品免费啦| 国产av无码专区亚洲av桃花庵| 黄页免费在线观看| 亚洲一区二区三区电影| 中文字幕亚洲免费无线观看日本| 亚洲黄色网址在线观看| 色片在线免费观看| 亚洲JIZZJIZZ妇女| 日本不卡在线观看免费v| 色偷偷亚洲第一综合网| 亚洲精品第一国产综合精品99| 国产日韩精品无码区免费专区国产 | 亚洲av片劲爆在线观看| 国产人成免费视频网站| 亚洲国产精品自在自线观看| 一区二区三区亚洲视频| 拍拍拍无挡视频免费观看1000| 亚洲电影国产一区| 欧美大尺寸SUV免费| 免费毛片毛片网址| 久久综合九九亚洲一区| 波多野结衣免费在线| 亚洲AV无码成人精品区日韩| 亚洲欧洲中文日韩久久AV乱码| 免费的全黄一级录像带| 久久亚洲精品国产精品婷婷| 亚洲成A∨人片天堂网无码| 久久99毛片免费观看不卡| 亚洲AV无码无限在线观看不卡| 免费又黄又硬又爽大片| 麻豆成人久久精品二区三区免费| 亚洲人成电影网站免费| 亚洲中文字幕无码久久精品1| 免费看黄视频网站| 久久久WWW免费人成精品| 久久亚洲国产成人影院| 亚洲国产AV无码专区亚洲AV|