Zurück   Flashforum > Flex und AIR > Flex programmieren

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 12-12-2011, 15:42   #1 (permalink)
Neuer User
 
Registriert seit: Sep 2011
Beiträge: 4
ant Flex

Hallo Leute,

ich bin bei ant ganz neu. Ich habe hier noch ein kleines Problem.
Es werden Bilder, die nicht Embed sind nicht mit hineingenommen.
Über den Flashbuilder funktioniert es bestens.
Liegt es an der Compilierung oder an dem paketerstellen für IOS.
PHP-Code:

<?xml version="1.0" encoding="UTF-8"?> 
<project default="4. Package Application" name="TestAG"> 
    <!-- Framework properties -->
    <property name="FLEX_HOME" value="/Applications/sdks/4.6.0" /> 
    <property name="AIR_GLOBAL" value="${FLEX_HOME}/frameworks/libs/air/airglobal.swc" /> 
    <property name="ADL" value="${FLEX_HOME}/bin/adl" /> 
    <property name="ADT" value="${FLEX_HOME}/lib/adt.jar" /> 
    <property name="PFI" value="${FLEX_HOME}/lib/pfi.jar" /> 
    <property name="FLEX_TASKS" value="${FLEX_HOME}/ant/lib/flexTasks.jar" /> 
    <property name="LOCALE" value="en_US" /> 
 
    <!-- Project properties --> 
    <property name="project_root" value="/Users/oliver/Documents/Flex4.5/TestAG" /> 
    <property name="class_path" value="${project_root}/src" /> 
    <property name="lib_path" value="${project_root}/libs" />
    <property name="splash_path" value="${class_path}/splash.png" /> 
    <property name="app_name" value="TestAG" /> 
    <property name="app_root_dir" value="." /> 
    <property name="app_type" value="mxml" /> 
    <property name="assets_dir_name" value="assets" />
    <property name="debug_mode" value="false" />
 
    <!-- Certificate properties --> 
    <property name="cert_loc" value="${app_root_dir}/certs" />
    <property name="ios_keystore" value="${cert_loc}/Distribution.p12" /> 
    <property name="ios_pass" value="u241klm2" />
    <property name="ios_provisioning" value="${cert_loc}/detpad1Test.mobileprovision" />
 
    <!-- Application properties -->
    <property name="swf_file" value="${app_name}.swf" /> 
    <property name="air_file" value="${app_name}.air" /> 
    <property name="ipa_file" value="${app_name}.ipa" /> 
    <property name="app_descriptor" value="${class_path}/${app_name}-app.xml" /> 
    <property name="main_class" value="${class_path}/${app_name}.${app_type}" />
    <property name="build_dir" location="${app_root_dir}/build" /> 
    <property name="debug_dir" location="${app_root_dir}/build/debug" /> 
    <property name="publish_dir" location="${app_root_dir}/build/deploy" /> 
    <property name="assets_dir" location="${class_path}/${assets_dir_name}" />
    <property name="output_loc" location="${publish_dir}/${swf_file}" />
 
    <!-- Use the Flex ANT tasks for easier compilation -->
    <taskdef name="mxmlc" classname="flex.ant.MxmlcTask" classpath="${FLEX_TASKS}" />
 
    <!-- Clean existing directories --> 
    <target name="1. Cleanup Directories" description="clean up"> 
        <delete dir="${debug_dir}" /> 
        <delete dir="${publish_dir}" /> 
        <delete dir="${build_dir}" /> 
    </target> 
 
    <!-- Create required directories --> 
    <target name="2. Build New Directories" depends="1. Cleanup Directories"> 
        <mkdir dir="${build_dir}" /> 
        <mkdir dir="${debug_dir}" /> 
        <mkdir dir="${publish_dir}" /> 
    </target>
 
    <!-- Compile SWF to build-directory for packaging --> 
    <target name="3. Compile SWF" depends="2. Build New Directories"> 
        <mxmlc 
            file="${main_class}" 
            output="${output_loc}" 
            locale="${LOCALE}" 
            static-rsls="false" 
            accessible="false" 
            configname="airmobile" 
            debug="${debug_mode}" 
            failonerror="true" 
            fork="true" 
            warnings="false"
            maxmemory="512m">
            <source-path path-element="${class_path}"/>
            <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                <include name="libs/*" />
            </compiler.library-path>
            <library-path file="${FLEX_HOME}/frameworks/locale/${LOCALE}" append="true"/>
            <library-path dir="${lib_path}" includes="*.swc" append="true"/>
            <external-library-path file="${AIR_GLOBAL}" append="true"/>
        </mxmlc>
    </target>
 
    <!-- Package the application to an ipa file & save it in the publish directory --> 
    <target name="4. Package Application" depends="3. Compile SWF"> 
        <java jar="${ADT}" fork="true" failonerror="true"> 
            <arg value="-package"/>
            <arg value="-target"/>
            <arg value="ipa-test"/>
            <arg value="-provisioning-profile"/>
            <arg value="${ios_provisioning}"/>
 
                  <arg value="-storetype"/>
            <arg value="pkcs12"/>
            <arg value="-keystore"/>
            <arg value="${ios_keystore}"/>
            <arg value="-storepass"/>
            <arg value="${ios_pass}"/>
 
            <arg value="${ipa_file}"/>
            <arg value="${app_descriptor}"/>
            <arg value="${output_loc}"/>
 
            <arg value="-C" /> 
            <arg value="${class_path}"/>
            <arg value="${splash_path}"/>
 
            <arg value="-C" /> 
            <arg value="${class_path}"/>
            <arg value="${assets_dir}/icons/." /> 
        </java> 
    </target>
</project>
Bin hier für jeden hinweis Dankbar.

LG Olli
zottiFX ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Flex 3.5 zu Flex 4 Upgrade, TextField zeigt keine embed fonts mehr an Sandler Flex allgemein 0 30-01-2011 21:33
Adobe Flex User Group München: Flex Builder 4 & Flash Catalyst Preview (27.01.09) marc Konferenzen und Treffen 0 13-01-2009 13:37
Vortrag: Next Flex Workflow - Flex 4 und Flash Catalyst (Sven Claar) marc FFK09 0 12-12-2008 19:54
Flex beta morgen - Flex wird zum Teil kostenlos bokel Nachrichten 10 08-02-2006 08:32
Flex für nicht kommerziellen Einsatz kostenlos erhältlich (inkl. Flex Builder) bort Flex allgemein 0 05-10-2004 16:37


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:02 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele