Kony - Build.xml для создания файла .apk - PullRequest
0 голосов
/ 14 января 2019

Я использую Kony Visualizer Starter, так как мне нужно интегрировать процесс с Jenkins и выполнить тестовые сценарии автоматизации для сборки, мне нужно сгенерировать файл .apk.

Когда я выполняю команду ant -file build.xml. Я сталкиваюсь со следующей ошибкой.

java.lang.RuntimeException: Application "com.pat.tool.keditor.konyapplication" could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, org.eclipse.ant.ui.antRunner, org.eclipse.datatools.connectivity.console.profile.StorageFileEditor, org.eclipse.e4.ui.workbench.swt.E4Application, org.eclipse.e4.ui.workbench.swt.GenTopic, org.eclipse.emf.codegen.CodeGen, org.eclipse.emf.codegen.JMerger, org.eclipse.emf.codegen.ecore.Generator, org.eclipse.emf.importer.ecore.Ecore2GenModel, org.eclipse.emf.importer.java.Java2GenModel, org.eclipse.emf.importer.rose.Rose2GenModel, org.eclipse.equinox.app.error, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.EclipseGenerator, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.reconciler.application, org.eclipse.equinox.p2.repository.repo2runnable, org.eclipse.equinox.p2.repository.metadataverifier, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.touchpoint.natives.nativePackageExtractor, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.jdt.apt.core.aptBuild, org.eclipse.jdt.core.JavaCodeFormatter, org.eclipse.jdt.core.JavaIndexer, org.eclipse.oomph.setup.core.SetupArchiver, org.eclipse.pde.build.Build, org.eclipse.pde.junit.runtime.uitestapplication, org.eclipse.pde.junit.runtime.legacytestapplication, org.eclipse.pde.junit.runtime.coretestapplication, org.eclipse.pde.junit.runtime.coretestapplicationnonmain, org.eclipse.pde.junit.runtime.nonuithreadtestapplication, org.eclipse.ui.ide.workbench, org.eclipse.wst.jsdt.core.JavaCodeFormatter, org.eclipse.wst.server.preview.preview.
    at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:252)
    at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:33)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1501)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1474)
    at org.eclipse.core.launcher.Main.main(Main.java:37)

Обратите внимание, что я создал файл Headless-Global.properties, поскольку он не был сгенерирован Kony Visualizer Starter.

Ниже приведены свойства, установленные для Headless-Global.properties файла

#This file need to be copied in workspace location
#Note: Please escape '\' with '\\' in file paths (Ex: C:\\workspace\\project)

#Envirnoment details
workspace.location=

#Full Path to a jar file whose name starts with 'org.eclipse.equinox.launcher_' in eclipse plugins folder
#Example: D:\\eclipse\\plugins\\org.eclipse.equinox.launcher_1.1.0.v20100507.jar
eclipse.equinox.path=C:\\Users\\SO-LPT-011\\eclipse\\jee-2018-12\\eclipse\\plugins\\org.eclipse.equinox.launcher_1.5.200.v20180922-1751.jar

#preference details
imagemagic.home=
android.home=
run.luaapichecker=false
playbook.home=
qt.home=
palm.home=
bb10.ndk.home=
bb10.signing.keys.home =
bb10.emulator.ip=
bb10.emulator.password=
bb10.vmware.home=

Могу ли я установить "com.pat.tool.keditor.konyapplication" плагин?

1 Ответ

0 голосов
/ 22 января 2019

Вы не можете сгенерировать устанавливаемый двоичный файл -i.e. Android .apk или iOS .ipa - с использованием Visualizer Starter . Visualizer Starter предназначен только для создания прототипов и используется для быстрой разработки идей и для разработчиков UX.

Чтобы создать файл .apk, вам нужно установить Visualizer Enterprise . Все загрузки доступны с сайта Kony здесь . Чтобы загрузить программу, вам необходимо зарегистрировать учетную запись разработчика Kony, но это бесплатно.

После установки Visualizer Enterprise вы сможете собрать .apk из интерфейса визуализатора или из командной строки .

...