Worklight ANT with shell component - ant

I have an applciation that uses the shell and inner applications.
There is an ant command to build the applications but no command to build
the shell component. Is there something i missed in the docs?
Thanks

There is currently no Ant command to build the Shell component. This can only be done in Eclipse.
We have this in our tracking system as a feature request.
Thanks.

Related

How to release a shell command within an Electron package

I notice that Atom is build with Electron and it has a shell command apm within the app package.
I want to borrow this idea. However there is no documentation about how to do this.
Anybody can help?

Using Listeners&Loggers in build.xml

I want to use Listeners&Loggers in my script build.xml
I have seen the suggested method, but it is on cmd -logger org.apache.tools.ant.listener.ProfileLogger
Also gone through groovy method, but is there any other way I can specify Listeners&Loggers in my script.
Thanks
RSA is built on Eclipse. Both let you select an Ant builder for a project. Which gives you all the Ant options including a command line.

Jenkins on Windows using something other than ant

I am looking at using Jenkins on Windows.
I currently have an ant script. It works pretty well. Except for instance, when the build breaks because of a syntax error, I can not see the error in the Jenkins console log.
So I am thinking may be ant is not the best tool for use on Windows.
What do most of you use for Jenkins on Windows?
If it is ant, how do you send the build output, VStudio, to the Jenkins console?
Thanks
Primarily I use Jenkins with maven projects, although you should see the ANT output in the online logs regardless.
What are you building? Are you building Java projects? Ant is what you use. If you are bulding a C project, you should use Make. If you're building a VisualStudio project, you should use msbuild. You use the build tool for your project. Jenkins will execute them without a problem.
Take a look at the build in question. On the left side of the screen, there's a Console output item. Click on that. Is there any output. No matter what tool you use, Jenkins captures the STDOUT and STDERR in that console output. If nothing else, you should see the exact commands Jenkins is executing to checkout and to build your project. Try executing those commands.
Still, you didn't give us much to go on. No idea what you're building or what you're doing with Ant. You didn't state any error, the console output, or even what the Jenkins error log is stating.
Jenkins does two things:
It watches your repository for changes.
Once it detects the changes, it executes the very commands you'd execute to build the project.
Jenkins doesn't care whether you use Ant, Maven, Make, or simply do a del /s/q. Jenkins will simply execute the commands you tell it to execute.
Addendum
It is c, c++, Java and InstallShield. I use ant to do file copy and move, call msdev.exe project. Some Javac calls, InstallShield command line builds..
Jenkins can execute multiple step builds in a single job. After you specify the build step, you can press the Add button to add another build step. There's no reason that all the build steps even have to be of the same type. Just select a "Freestyle" build, and use the right build tools for the job.
There's an optional MSBUILD plugin in Jenkins that should do your MS Build. This should give you the complete output from MSBuild, so you can see any errors.
After you do your MSBuild step, you can create a second build step to run an Ant task to build your InstallShield. After that, you could run another build step to do the copying you need either on the command line or through something like Ant (or Nant.
Whatever the output of the various tools is the output you'll get in the build console.
dev.cmd shows the output and I continue to use ant.

What is the best approach to implement an RTC build for WebSphere

I would like to utilize the RTC (v2.x) build for Java EE projects created in RAD (v8) and deploy them on WebSphere (v7).
Independently of RTC build i am able to create all sorts of ant scripts and jython scripts to perform automated tasks. The problem is to integrate this into a single RTC build.
The path I'm on now is:
- RTC build definition calls external build command which is a ms-dos .bat file that call's the Rational Build Utility headless ant with an ant build script.
- The ant build script uses 1)projectImport 2)workspaceBuild and 3)exec to call wsadmin with a jython deploy script.
Right now the build fails because the workspaceBuild task fails because we've defined a target runtime that does not exist in the headlles ant workspace. If someone knows how to add/define a new target runtime into a headless ant workspace that would be very helpfull.
I can't help feeling that i'm on the wrong track and feel quit stuck between the different environments and I'm wondering how other people implement their RTC build for a WebSphere target.
Thanks.
There's a DeveloperWorks article that explains how to use the RAD Ant tasks in a continuous build scenario. For the target runtime, you would define that in Eclipse, export your preferences, then import them during the build using the workspacePreferenceFile Ant task with useEclipsePrefs="true". The article uses Hudson, but the same approach should work for RTC Build.

Running Delphi builds under TFS MSBuild

Wanting to build and test a bunch of Borland Delphi 6 projects that are integrated with ASP.NET services. Had been using WANT and CruiseControl for building Delphi. With TFS Build agent we can tie all together and do some testing. I am looking for guidance and direction.
One issue I see is that there is no "solution" in a Delphi project to be given to MSBuild as a '<'SolutionToBuild'>'.
<SolutionToBuild Include="There is no such thing as a Delphi.sln">
<Targets></Targets>
<Properties></Properties>
</SolutionToBuild>
Also, I have references to <UsingTask> but am a little unsure how to use them. The <UsingTask> allows run custom task for Delphi command-line compile.
Your guidance would be appreciated.
Can you upgrade? Delphi 2006+ uses MSBuild by default. There is nothing to configure.
You can use MSBuild to run the Delphi command line compiler. It's been a while, but I'm pretty sure either the IDE supports command line compilation or there is a stand-alone compiler that can be run from the command line. In either case, you would need to create an <Exec> task that runs the appropriate command line build tool with the required parameters.
When you say you have "references to <UsingTask>" do you mean that you are importing an external MSBuild task? The <UsingTask> element is used to pull in a custom MSBuild task that resides in an external assembly (DLL). Once the task is imported, you use it just like you would any other built-in task.

Resources