- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
数周以来,我们一直在使用适配器构建器任务 (com.worklight.ant.builders.AdapterBuilderTask) 来编译我们的 MFP 适配器。我们刚刚开始在我们的 MFP 应用程序中采用 Java 适配器,但我们无法使用适配器构建器任务编译它们。
查看输出中的编译错误,适配器构建器任务似乎没有正确的编译类路径;它可能缺少 worklight-jee-library.jar。
这是一个已知问题吗?有可用的修复程序吗?这是我们在使用适配器构建器任务进行编译时得到的输出:
$ gradle -b build-mfp.gradle deployMFPNativeProject -PmfpProjectFolder=/Users/olivieri/git/Ready.App.5.Loyalty/LoyaltyReadyApp -PoutputFolder=/Users/olivieri/tmp -PmfpServerURL=http://localhost:8080 -PiOSProjectFolder=/Users/olivieri/git/Ready.App.5.Loyalty/LoyaltyReadyAppiOS -PmfpHybridFlag=false
MFP CLI path: /Applications/IBM/MobileFirst-CLI
Path to ant builder JAR: /Applications/IBM/MobileFirst-CLI/public/worklight-ant-builder.jar
MFP project folder: /Users/olivieri/git/Ready.App.5.Loyalty/LoyaltyReadyApp
outputFolder: /Users/olivieri/tmp
MFP server: http://localhost:8080
MFP project name: LoyaltyReadyApp
MFP apps folder: /Users/olivieri/git/Ready.App.5.Loyalty/LoyaltyReadyApp/apps
:deriveProperties UP-TO-DATE
:loadAntTasks UP-TO-DATE
:buildMFPArtifacts
[ant:war-builder] Ignoring contents of 'server/java' folder. To include this folder, set the 'compileJava' property to true.
mfpHybridFlag: false
About to build native app named: Loyalty
Adapters found.
About to build adapter named: LoyaltyUserAdapter
[ant:echo] Worklight Ant task version 7.0.0.00.20150608-1356
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterApplication.java:11: error: package com.worklight.wink.extensions does not exist
[ant:adapterBuilder] import com.worklight.wink.extensions.MFPJAXRSApplication;
[ant:adapterBuilder] ^
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterApplication.java:13: error: cannot find symbol
[ant:adapterBuilder] public class LoyaltyUserAdapterApplication extends MFPJAXRSApplication{
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: class MFPJAXRSApplication
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:13: error: package javax.ws.rs does not exist
[ant:adapterBuilder] import javax.ws.rs.GET;
[ant:adapterBuilder] ^
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:14: error: package javax.ws.rs does not exist
[ant:adapterBuilder] import javax.ws.rs.Path;
[ant:adapterBuilder] ^
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:15: error: package javax.ws.rs does not exist
[ant:adapterBuilder] import javax.ws.rs.PathParam;
[ant:adapterBuilder] ^
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:16: error: package javax.ws.rs does not exist
[ant:adapterBuilder] import javax.ws.rs.Produces;
[ant:adapterBuilder] ^
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:17: error: package javax.ws.rs.core does not exist
[ant:adapterBuilder] import javax.ws.rs.core.MediaType;
[ant:adapterBuilder] ^
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:19: error: package org.apache.commons.codec.binary does not exist
[ant:adapterBuilder] import org.apache.commons.codec.binary.Base64;
[ant:adapterBuilder] ^
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:20: error: package org.apache.http does not exist
[ant:adapterBuilder] import org.apache.http.HttpHost;
[ant:adapterBuilder] ^
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:21: error: package org.apache.http does not exist
[ant:adapterBuilder] import org.apache.http.HttpResponse;
[ant:adapterBuilder] ^
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:22: error: package org.apache.http does not exist
[ant:adapterBuilder] import org.apache.http.HttpStatus;
[ant:adapterBuilder] ^
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:23: error: package org.apache.http.client.methods does not exist
[ant:adapterBuilder] import org.apache.http.client.methods.HttpPost;
[ant:adapterBuilder] ^
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:24: error: package org.apache.http.client.methods does not exist
[ant:adapterBuilder] import org.apache.http.client.methods.HttpUriRequest;
[ant:adapterBuilder] ^
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:25: error: package org.apache.http.entity does not exist
[ant:adapterBuilder] import org.apache.http.entity.StringEntity;
[ant:adapterBuilder] ^
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:26: error: package org.apache.http.impl.client does not exist
[ant:adapterBuilder] import org.apache.http.impl.client.CloseableHttpClient;
[ant:adapterBuilder] ^
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:27: error: package org.apache.http.impl.client does not exist
[ant:adapterBuilder] import org.apache.http.impl.client.HttpClients;
[ant:adapterBuilder] ^
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:28: error: package org.apache.http.util does not exist
[ant:adapterBuilder] import org.apache.http.util.EntityUtils;
[ant:adapterBuilder] ^
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:39: error: cannot find symbol
[ant:adapterBuilder] @Path("/")
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: class Path
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:44: error: cannot find symbol
[ant:adapterBuilder] private static CloseableHttpClient client;
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: class CloseableHttpClient
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:45: error: cannot find symbol
[ant:adapterBuilder] private static HttpHost host;
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: class HttpHost
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:135: error: cannot find symbol
[ant:adapterBuilder] private HttpPost getHttpPost() throws UnsupportedEncodingException {
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: class HttpPost
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:163: error: cannot find symbol
[ant:adapterBuilder] private String execute(HttpUriRequest req) throws Exception {
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: class HttpUriRequest
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/utils/JsonReader.java:19: error: package com.google.gson does not exist
[ant:adapterBuilder] import com.google.gson.JsonParser;
[ant:adapterBuilder] ^
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:68: error: cannot find symbol
[ant:adapterBuilder] public ServerResponse<String> getUserData(@PathParam("phone_number") String phoneNumber,
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: class PathParam
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:69: error: cannot find symbol
[ant:adapterBuilder] @PathParam("locale") String locale){
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: class PathParam
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:65: error: cannot find symbol
[ant:adapterBuilder] @GET
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: class GET
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:66: error: cannot find symbol
[ant:adapterBuilder] @Path("/user-data/{phone_number}/{locale}")
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: class Path
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:67: error: cannot find symbol
[ant:adapterBuilder] @Produces(MediaType.APPLICATION_JSON)
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: class Produces
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:105: error: cannot find symbol
[ant:adapterBuilder] @GET
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: class GET
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:106: error: cannot find symbol
[ant:adapterBuilder] @Path("/watson-data")
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: class Path
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:107: error: cannot find symbol
[ant:adapterBuilder] @Produces(MediaType.APPLICATION_JSON)
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: class Produces
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterApplication.java:17: error: method does not override or implement a method from a supertype
[ant:adapterBuilder] @Override
[ant:adapterBuilder] ^
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterApplication.java:22: error: method does not override or implement a method from a supertype
[ant:adapterBuilder] @Override
[ant:adapterBuilder] ^
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterApplication.java:31: error: cannot find symbol
[ant:adapterBuilder] return getClass().getPackage().getName();
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: method getClass()
[ant:adapterBuilder] location: class LoyaltyUserAdapterApplication
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterApplication.java:27: error: method does not override or implement a method from a supertype
[ant:adapterBuilder] @Override
[ant:adapterBuilder] ^
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:114: error: cannot find symbol
[ant:adapterBuilder] HttpPost httpPost = getHttpPost();
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: class HttpPost
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:137: error: cannot find symbol
[ant:adapterBuilder] HttpPost httpPost = new HttpPost(watsonPath);
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: class HttpPost
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:137: error: cannot find symbol
[ant:adapterBuilder] HttpPost httpPost = new HttpPost(watsonPath);
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: class HttpPost
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:140: error: cannot find symbol
[ant:adapterBuilder] httpPost.setEntity(new StringEntity(watsonString));
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: class StringEntity
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:144: error: cannot find symbol
[ant:adapterBuilder] httpPost.setHeader("Accept", MediaType.APPLICATION_JSON);
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: variable MediaType
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:149: error: cannot find symbol
[ant:adapterBuilder] String encoding = Base64.encodeBase64String(creds.getBytes("UTF-8"));
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: variable Base64
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:164: error: cannot find symbol
[ant:adapterBuilder] client = HttpClients.createDefault();
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: variable HttpClients
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:166: error: cannot find symbol
[ant:adapterBuilder] host = new HttpHost(watsonHost, 443, "https");
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: class HttpHost
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:168: error: cannot find symbol
[ant:adapterBuilder] HttpResponse JSONResponse = client.execute(host, req);
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: class HttpResponse
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:169: error: cannot find symbol
[ant:adapterBuilder] String message = EntityUtils.toString(JSONResponse.getEntity());
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: variable EntityUtils
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/LoyaltyUserAdapterResource.java:171: error: cannot find symbol
[ant:adapterBuilder] if (JSONResponse.getStatusLine().getStatusCode() != HttpStatus.SC_OK) {
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: variable HttpStatus
[ant:adapterBuilder] location: class LoyaltyUserAdapterResource
[ant:adapterBuilder] /var/folders/c9/gf_f0_sd60q1mm9kxwgvlxsr0000gn/T/AdapterBuilderTask1333430620761865396/src/com/ibm/mil/utils/JsonReader.java:81: error: cannot find symbol
[ant:adapterBuilder] contents = new JsonParser().parse(reader).toString();
[ant:adapterBuilder] ^
[ant:adapterBuilder] symbol: class JsonParser
[ant:adapterBuilder] location: class JsonReader
[ant:adapterBuilder] 47 errors
:buildMFPArtifacts FAILED
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/olivieri/Development/eclipse-luna-workspaces/workspace-mil-common-assets/MIL_Common_Assets/gradle_assets/build-deploy-assets/build-mfp.gradle' line: 117
* What went wrong:
Execution failed for task ':buildMFPArtifacts'.
> Build of the adapter 'LoyaltyUserAdapter' failed. The failure message is: 'Compile failed; see the compiler error output for details.'. The failure may have been caused due to incorrect Java code, incompatible JDK level, JAVA_HOME not pointing to the location of a valid JDK or missing dependencies. Note that the worklight-jee-library.jar must be in the classpath when building Java adapters.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 3.726 secs
$
最佳答案
您说的 JEE 库缺失是正确的。会不会是你在Ant任务中没有声明?
请参阅此用户文档主题:Building applications and adapters > 构建适配器
在没有库的情况下构建 Java 适配器
<path id="my.path">
<pathelement path="/opt/IBM/Worklight/WorklightServer/worklight-jee-library.jar"/>
</path>
<adapter-builder
folder="adapterRootFolder"
destinationfolder="destination-folder"
classpathref="my.path"/>
使用类路径中的 server/lib 和 adapter/lib 文件夹构建 Java 适配器
<path id="my.path">
<pathelement path="/opt/IBM/Worklight/WorklightServer/worklight-jee-library.jar"/>
<fileset dir="adapterRootFolder/lib">
<include name="*.jar" />
</fileset>
<fileset dir="projectRootFolder/server/lib">
<include name="*.jar" />
</fileset>
</path>
<adapter-builder
folder="adapterRootFolder"
destinationfolder="destination-folder"
classpathref="my.path"/>
关于java - 无法在 MFP v7 中使用适配器构建器任务 (ANT) 编译 Java 适配器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30770215/
是否有任何库或框架旨在促进从另一种成熟的编程语言中构建项目? 在 C++、java 等编程语言中指定逻辑、集合和复杂规则非常容易,但在 Makefile 中完成这些事情似乎是一场艰苦的战斗。我还没有深
我有这段代码可以用 clang 编译得很好(即使使用 -Weverything),但是 gcc 会发出错误。 #include #include #include using namespace
我有以下 block 头文件 BKE_mesh.h: /* Connectivity data */ typedef struct IndexNode { struct IndexNode *
我在我的一个项目中遇到了一个奇怪的问题。我的代码库依赖于一个外部库,其中包含一个名为 Dataset 的类. Dataset类私有(private)继承自 std::vector (其中 Sample
当使用 gcc、g++ 或 make 在终端中编译一个小型 C 或 C++ 项目时,我收到以下错误: /tmp/ccG1caGi.o: In function `main': main.c:(.tex
我正在尝试从 CVS 为 Windows 上的 Emacs 23.1.50 编译 CEDET,但在“第 6 步:打开 EDE...”时出现错误:“defvar:作为变量的符号值是无效的:cedet-m
我正在(重新)学习编程,我从 C 开始。我的 IDE(如果我可以这么说)是 Windows7 上的 cygwin(32 位)和 Visual-Studio 2010。我总是编译我用 gcc (cygw
我喜欢在模板类中使用本地类来执行类似“static if”的构造。但是我遇到了 gcc 4.8 不想编译我的代码的问题。但是 4.7 可以。 这个例子: #include #include #in
我有一个项目,必须仅使用 java 1.4 进行编译。但我计划使用mockito 编写一些单元测试。我想要一种在 pom 中指定的方法,以便 src/main/java 使用 jdk 1.4 编译,但
我想了解 PHP 编译过程是如何工作的。 假设我有一个名为funcs.php 的文件并且这个文件有三个函数,如果我include 或require 它,所有的在文件加载期间编译三个函数?或者源代码会被
编译工具链 我们写程序的时候用的都是集成开发环境 (IDE: Integrated Development Environment),集成开发环境可以极大地方便我们程序员编写程序,但是配置起来
当我编写一些 Scala 代码时,在尝试编译代码时收到一条奇怪的错误消息。我将代码分解为一个更简单的代码(从语义的角度来看这完全没有意义,但仍然显示了错误)。 scala> :paste // Ent
我正在编译一个 SCSS 文件,它似乎删除了我的评论。我可以使用什么命令来保留所有评论? >SASS input.scss output.css 我在 SCSS 中看到两种类型的注释。 // Comm
这是我的代码: #include typedef struct { const char *description; float value; int age; } swag
当您编译 grails war 时,我知道 .groovy 代码被编译为字节码类文件,但我不明白容器(例如 tomcat)如何在请求 GSP 时知道如何编译它们。容器了解 GSP 吗?安装在服务器上的
我正在努力将多个文件编译成一个通用程序。我收到一个错误: undefined reference to 'pi' 这是我的代码和 Makefile 的框架。我做错了什么?谢谢! 文件:calcPi.c
我尝试使用 LD_PRELOAD 来 Hook sprintf function ,所以我将打印到缓冲区的结果: #define _GNU_SOURCE #include #include int
我正在寻找最简单的方法来自动将 CoffeeScript 重新编译为 JS。 阅读documentation但仍然很难得到我想要的东西。 我需要它来监视文件夹 src/ 中的任何 *.coffee 文
我想使用定制waveformjs 。我发现this on SO但是,我不知道如何编译/安装波形来开始。我从 GitHub 克隆它并进行了更改,但是我不知道如何将其转换为 .js 文件。 最佳答案 为了
很难说出这里问的是什么。这个问题是含糊的、模糊的、不完整的、过于宽泛的或修辞性的,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开它,visit the help center 。 已关
我是一名优秀的程序员,十分优秀!