<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
    主站蜘蛛池模板: 33333在线亚洲| 亚洲最新在线视频| 美女被吸屁股免费网站| 高清国语自产拍免费视频国产| 亚洲一区中文字幕| 在线观看人成视频免费| 亚洲国产av玩弄放荡人妇| 国产男女猛烈无遮档免费视频网站| 亚洲av纯肉无码精品动漫| 日本无卡码免费一区二区三区| 国产精品亚洲av色欲三区| 亚洲综合最新无码专区| 国产精品偷伦视频观看免费| 亚洲AV无码一区东京热| 99精品视频免费观看| 国产成人精品亚洲日本在线| 宅男666在线永久免费观看| 牛牛在线精品观看免费正| 亚洲精品无码久久久影院相关影片 | 一区二区三区四区免费视频 | 免费无码av片在线观看| 亚洲欧洲日产专区| 日韩中文无码有码免费视频| 免费人妻精品一区二区三区| 亚洲精品乱码久久久久久| 最近免费2019中文字幕大全| 亚洲熟妇丰满xxxxx| 国产亚洲精品不卡在线| 1000部免费啪啪十八未年禁止观看| 亚洲娇小性色xxxx| 亚洲免费日韩无码系列 | 夭天干天天做天天免费看| 永久免费无码日韩视频| 亚洲一区综合在线播放| 成人免费一区二区三区在线观看| 无码免费又爽又高潮喷水的视频| 亚洲午夜在线电影| 日韩亚洲精品福利| 99久久久精品免费观看国产 | 国产性爱在线观看亚洲黄色一级片| 久久aa毛片免费播放嗯啊|