Import single file to OSB - soa

We keep all our osb projects in source control. I want to write a script to extract the project files from source control and import them into an OSB environment.
All the tutorials online show how to make an export from one OSB and import that into another. I need to know if I have a single file (e.g. test.xsd) how can I import it into OSB via a command or script.
(I know how to do this with lots of manual steps involving eclipse but it must be possible via the command line.)

Which version are you using? Check this out
Offline Oracle Service Bus Scripting

If you are using maven,you can export the OSB projects as jar to include only the required files( e.g test.xsd) and import the jar in the osb environment .

Related

import play framework module as jar into java project

I have created a play module, how I can import the exported jar to normal java project(not play project)?
When I tried it it gives error:
The type play.libs.F$Promise cannot be resolved. It is indirectly referenced from required .class files
You need to include the play libs as well. Have a look at the deployment documentation. activator dist allows you to create a standalone distribution for your entire play-app.
You can also search the jars in the output for the one which contains the classes you need and just add this one jar to your project.
Or: use sbt/maven to manage your dependencies and add the entire play-framework. (seems to be a bit of an overkill though)

Pentaho Kettle - Conversion of a job to jar file

Is it possible to convert a pentaho job to jar file? if it so please tel me how? i tried to convert a job to jar but failed due to the class problems.
In JAR, we aggregate many Java class files. But in PDI Jobs, the files are in XML files. Pentaho uses its DI Engine to read these XML files. Hence we cannot create JAR files out of an XML file.
You can run an ETL job from java code, using kettle's api. You can't convert a job into a jar.
If you launch a job or a transformation in batch mode, you have to use the scripts kitchen or pan (with sh or bat extension dopending on the OS). Actually those scripts run a java program inside, using the parameters that you pass to it. One of the parameters has to be the path of the file .Kjb (extension of a job), which is a regular xml file. So the xml files are necessary, but you can launch directly the java command (the one inside of the sh/bat script) passing the required paramenters to it. To see which parameters it needs you will have to do a reverse engineering work on the kitchen/pan script, which are really simple and short inside.

Can I define like a main in sikuri? a way to run a serie of sikuri file one by one automatically

I try to make automatic test on sikuli, I have to many TCs in sikuli files, but I need all the file on sikuli run one by one without human actions, a know I can do a batch or a sukili file who run all the files, but isn't a way to do like a main in a scrip in sikuli?
1) Sikuli can use Python modules syntax. I used it in my practice.
My old module was started like this:
# import
import sys
sys.path.append("/Program Files/Sikuli")
from sikuli.Sikuli import *
# some Sikuli functions further.
Then I imported my module like Python module in Sikuli/Python main routine and used it's functions. So you can put your TC in modules and call them from "Main" module.
2) There was some works on integrating Sikuli into Robot Framework, general purpose testing framework. You can Google them out.
Unfortunately, all that worked with Sikuli versions before 1.0 , and I just don't know how it is going now (there is one developer on Sikuli now and things don't go smooth). In general, the answer is "yes, you can" (other way or another), but I can't give clear full details now.
You could write a shell script with all the commands you would otherwise run manually.
Something like:
#!/bin/sh
sikuli-ide -r sikuli_script1
sikuli-ide -r sikuli_script2
sikuli-ide -r sikuli_script3
And so on. Afterwards just run the script.

How to add a jar library into another jar library

i am doing a java library that is using jaybird jar.
I want my library to be a jar with the jaybird in it so when I have to use it, I only import my jar.
How can this be done? I'm using Eclipse Version: Indigo Service Release 2.
Thanks in advance!
It can be done, but requires a special launcher using a specific classloader to extract the inner jar from the outer jar.
I would simply use the standard way of doing: deliver both jars, along with a startup .bat/.sh file used to start the application, the whole being packed into a simple zip file.

How do I share Notepad++ snippets (nppsnippets) with others

I have setup a number of custom snippet libraries with the nppsnippets plugin.
I can see where it has the ability to import sqlite files, but I don't see what file(s) to share if I would like to let associates use the libraries I created.
Ideally I would like to share a subset of the libraries I created.
Thanks
This plugin creates a sqlite database within your %appdata%/Notepad++/plugins/config/ folder named NppSnippets.sqlite.
While Notepad++ is closed, you can overwrite the entire database in your associates appdata folder with the one you have, and the next time Notepad++ is opened, it will have your library in their application. Alternatively, you can have them use the built-in import tool within notepad++ to import particular libraries from your SQLite database.

Resources