首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Worklight 6.1.0.1构建在z/Linux编码问题上?窃听器?

Worklight 6.1.0.1构建在z/Linux编码问题上?窃听器?
EN

Stack Overflow用户
提问于 2014-07-10 17:20:06
回答 1查看 224关注 0票数 3

我有一个jazz构建服务器,我正在使用提供的ant脚本来构建我的应用程序。构建在我们的AIX服务器上运行良好。但是,我迁移到了运行z/Linux的另一台服务器上,应用程序将不会加载。

我比较了这两个文件,它们之间只有一个区别。

在AIX (工作)中,以下代码出现在index.html中:

代码语言:javascript
运行
复制
    <script>
    // Define WL namespace.
    var WL = WL ? WL : {};
    /**
     * WLClient configuration variables.
     * Values are injected by the deployer that packs the gadget.
     */

在z/Linux上(不工作),下面的代码出现在index.html中

代码语言:javascript
运行
复制
    <script>&#13;
    // Define WL namespace.&#13;
    var WL = WL ? WL : {};&#13;
    &#13;
    /**&#13;
     * WLClient configuration variables.&#13;
     * Values are injected by the deployer that packs the gadget.&#13;
     */&#13;

--这部分代码是由worklight ant任务注入的。,这不是我们的代码。

有什么建议吗?

EN

回答 1

Stack Overflow用户

发布于 2014-08-04 13:59:34

又试了一次:

代码语言:javascript
运行
复制
wslnx029:/home/wl # cat build.xml
<project basedir="." name="build-tools" default="build-application">

    <taskdef resource="com/worklight/ant/defaults.properties">
        <classpath>
            <pathelement location="/home/wl/worklight-ant-builder-6.1.0.jar" />
        </classpath>
    </taskdef>

    <target name="build-application">
        <app-builder applicationfolder="/home/wl/proj6101/apps/app6101" 
                 worklightserverhost="http://localhost:9080/worklight" 
                 outputfolder="/home/wl/proj6101/bin"/>
    </target>


</project>

wslnx029:/home/wl # ./apache-ant-1.7.1/bin/ant -verbose
Apache Ant version 1.7.1 compiled on June 27 2008
Buildfile: build.xml
Detected Java version: 1.6 in: /home/wl/ibm-java-s390x-60/jre
Detected OS: Linux
parsing buildfile /home/wl/build.xml with URI = file:/home/wl/build.xml
Project base dir set to: /home/wl
[antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
Build sequence for target(s) `build-application' is [build-application]
Complete build sequence is [build-application, ]

build-application:
     [echo] Worklight Ant Task version 6.1.0.01.20140801-1626
[app-builder] Aug 4, 2014 9:43:19 AM com.worklight.builder.sourcemanager.handlers.android.AndroidManifestSourceHandler checkBuildTarget
[app-builder] WARNING: FWLST1119W: Android build will fail because the API level used to compile the project is not supported by the Worklight Studio.
[app-builder] It is recommended to use Android API level 18 which is the latest API level supported by the Worklight Studio. Use the Android SDK Manager to install API level 18, configure your project to build with API level 18 by updating the Project Build Target in Project / Properties / Android dialog.
[app-builder] Aug 4, 2014 9:43:19 AM com.worklight.ant.builders.ApplicationBuilderTask execute
[app-builder] SUCCESS: FWLST2001I: Successfully built environments: [android, common]

BUILD SUCCESSFUL
Total time: 1 second

--这是得到的HTML部分:

代码语言:javascript
运行
复制
       <script>
        // Define WL namespace.
        var WL = WL ? WL : {};
        /**
         * WLClient configuration variables.
         * Values are injected by the deployer that packs the gadget.
         */
        WL.StaticAppProps = {
   "APP_DISPLAY_NAME": "app6101",
   "APP_ID": "app6101",
   "APP_SERVICES_URL": "\/apps\/services\/",
   "APP_VERSION": "1.0",
   "ENVIRONMENT": "android",
   "LOGIN_DISPLAY_TYPE": "embedded",
   "WORKLIGHT_NATIVE_VERSION": "3180588129",
   "WORKLIGHT_PLATFORM_VERSION": "6.1.0.01.20140716-1751",
   "WORKLIGHT_ROOT_URL": "\/apps\/services\/api\/app6101\/android\/"
};</script>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24682637

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档