IBM MobileFirst 7.1 - How to install MobileFirst Runtime with Ant scripts - ant

How to install MobileFirst runtime with ant scripts, in most of the documentation it suggest to use Installation Manager but we want to use ant scripts to do this installation. And where can I find this ant scripts.

There are no specific Ant scripts/tasks for installation of the MobileFirst binaries itself, but it ought to relatively easily be able to get your Ant script to call the MobileFirst silent install using an <exec> task or similar.
Note that the next step is then typically to install the MobileFirst administration .war, that is (or can be) managed using an Ant task.

Related

Ant sonar command not works

I am trying to insert sonarqube setup on build.xml, getting unsupported error.
My build Java version support 1.6
Ant.sonar.qube support 2.5
If I use have version 1.8 my ant sonar command is working.ant command is not working.if I use java 1.6 ant is working and ant sonar is not working.
You already know exactly what your problem is:
If I use have version 1.8 my ant sonar command is working
...
if I use java 1.6 ant is working and ant sonar is not working.
You're facing incompatibility with the version of Java you're trying to use. Since analysis will not work with 1.6, you're best off upgrading to Java 8 and working to make whatever your other Ant target is work with that.

Build Android apps on TFS 2017 using Android Studio OpenJDK?

I want to build Android apps on a local TFS 2017 build agent - local TFS 2017 server also.
Android Studio now contains OpenJDK but I couldn't get the TFS 2017 Gradle task to work without installing Oracle's JDK. I tried creating a JAVA_HOME environment variable, using the set JAVA_HOME by JDK version in the TFS Gradle task, and the set JAVA_HOME by path in the TFS Gradle task.
Looks like having Oracle's JDK is the standard for TFS (it's installed on Microsoft's hosted build agents) but I'd like to do without because of the incoming JDK 8 licensing change.
Unfortunately you have to install the Oracle's JDK first if you are using windows build agent, it's one of the prerequisites.
Before you set up Android Studio, be sure you have installed JDK 7 or
later. The Java Runtime Environment (JRE) alone is not sufficient.
Even with the Linux agent, when you running OpenJDK, the installer will tells
"SYSTEM HEALTH OpenJDK shows intermitten performance and UI issues. We recommend using the Oracle JRE/JDK" Reference this similar thread: Can Android Studio use OpenJDK or does it require Oracle JDK on Linux?
More information you can reference below articles:
How to install the Android SDK on Windows, Mac and Linux
Digi Embedded for Android > Get started > Step 4: Create your first
application > Step 4.1: Install the software
The Gradle task doesn't like a JDK path containing spaces. I couldn't get any kind of quotes to work and 8.3 name creation is disabled on the build machine.
I've created directory links with mklink /d for the 2 directories that have spaces in their names. Then in the Gradle task advanced options selected set JAVA_HOME by path and set the path to C:\Program-Files\Android\Android-Studio\jre Works fine now.

Hyperledger SDK for Java chaincode (shim-client-1.0)

I tried to compile chaincode sample and write my own one (https://github.com/hyperledger/fabric/tree/master/examples/chaincode/java/SimpleSample)
However, I can't get a shim-client-1.0. Do you have plans to make java sdk public?
I hope that “shim-client-1.0.jar” will be added to maven repository soon, nevertheless you can try to compile it using source code in “github.com/hyperledger/fabric/core/chaincode/shim/java”.
gradle build
and "shim-client-1.0.jar" will be available in github.com/hyperledger/fabric/core/chaincode/shim/java/build/lib folder.

How to build the plugin with ant on mac

I found a salesforce plugin for intellij IDEA (link), and now trying to install it. The problem is, i've never done this before. So according to instruction:
How to build and install
Until the plugin is released into the IntelliJ plugins repository, you
can following these instructions for manually building and installing
the plugin from GitHub:
Update the ANT script salesforce-plugin-xml with the location of your IntelliJ IDEA install
<!--property name="idea.path" value="C:\Program Files (x86)\JetBrains\IntelliJ IDEA 13.0.2"/-->
<property name="idea.path" value="/Applications/IntelliJ IDEA 13.app"/>
Execute the 'package' target of the ANT script - this will create a salesforce-plugin-#.#.zip file in the out directory
Go into IntelliJ IDEA settings under Plugins and select "Install plugin from disk". Select the zip file and click Ok.
I downloaded a project from github, added path to idea to salesforce-plugin.xml. Then i realized that i don't have an ant to build it. I installed homebrew, installed ant, checked the version (ant appeared, ok).
Then i stuck. I tried different combinations, how to package the plugin, The last attempt is when i changed salesforce-plugin.xml to build.xml and wrote in terminal:
ant package build.xml
got:
Buildfile: /Users/cooler/Downloads/salesforce-plugin-master/build.xml
BUILD FAILED
/Users/cooler/Downloads/salesforce-plugin-master/build.xml:36: taskdef
class com.intellij.ant.Javac2 cannot be found using the classloader
AntClassLoader[]
Can you help me please to do this in right way!?
BTW, i use Mavericks
On a Mac, you need to add /Contents to the root path of the IDEA installation. For example:
<property name="idea.path" value="/Applications/IntelliJ IDEA 14.app/Contents"/>
When generating ant build scripts:
build -> generate ant build
-> check "use current idea instance for idea.home property"
Re-generate the ant build scripts. Now the build should work propertly.

Apache Ant 1.6.5 - Clean Up Unused Jars Files

I searched the forum before posting.But I could find a suitable answer.
We are using Apache Ant 1.6.5 to build our Java Enterprise Application.We are using lot of external jar files to compile & build the application.I want to clean up the unused jar files.
Is the a easy way to identify & remove the unused jars?.
Checkout the tattletale tool from Jboss.

Resources