Wednesday, November 20, 2013

How to Make File-Based MDS in JDeveloper Work for both Windows and Linux

In this article I explain how you  can modify the JDeveloper adf-config.xml file to make it work for both Windows, as well as Linux.

If in a JDeveloper application you point to artifacts in a file based MDS residing in a Windows folder for example "d:\projects\MDS", then JDeveloper will create an new entry in the adf-config.xml file (that you can find in Application Resources -> Descriptors -> ADF META-INF) pointing to the absolute location of that folder:



The problem with this is that if you have other colleagues that use Linux instead of Window, it's not possible to make it work for both by defining some relative location (as you could do with ant), like "../../projects/MDS", so now what?

As in most cases, the solution is so simple that I successfully missed it many times: use an environment variable! What worked was creating an environment variable with name MDS_HOME, and after that I could use it like this:

Problem solved! Such an evironment variable you can create in Windows as well as Linux.

I have not yet fully tested if this works for everything, like deploying with ant, but if it doesn't I expect you can easily fix that by modifying the ant-sca-compile.xml file in your JDeveloper installation folder by adding a property "mds_home" in there as well.

3 comments:

Vijay said...

It does work, I actually used the pattern you suggested to make my composite builds without using database based MDS. This gives me the ability to automate my builds in a relatively easier manner.
Thanks!!

innovativeitsolutions2 said...

I explain how you can modify the JDeveloper adf-config.xml file to make it work for both Windows, as well as Linux.

Anonymous said...

good
Mengobati Kemaluan Wanita Keluar Nanah
obat Kemaluan Wanita Keluar Nanah
Mengobati Kemaluan Keluar Nanah
Mengobati sakit Kemaluan Wanita Keluar Nanah
Mengobati penyakit Kemaluan Wanita Keluar Nanah
mengobati kemaluan pria keluar nanah
mengobati penyakit kemaluan pria keluar nanah
mengobati kemaluan keluar nanah
obat kemaluan pria keluar nanah
mengobati sakit kemaluan pria keluar nanah
cara herbal mengobati kemaluan keluar nanah
mengobati kemaluan keluar nanah
cara herbal mengobati keluar nanah
cara herbal mengobati sakit kemaluan keluar nanah
cara herbal mengobati penyakit kemaluan keluar nanah
cara tradisional mengobati kemaluan keluar nanah
mengobati kemaluan keluar nanah
cara tradisional mengobati keluar nanah
cara alami mengobati keluar nanah
cara tradisional untuk mengobati kemaluan keluar nanah
cara cepat mengobati kemaluan keluar nanah
cara mengobati kemaluan keluar nanah
cara cepat mengobati keluar nanah
cara mengobati keluar nanah
cara yang cepat mengobati kemaluan keluar nanah
Cara Ampuh Mengobati Kemaluan Keluar Nanah
Cara Mengobati Kemaluan Keluar Nanah
Cara yg Ampuh Mengobati Kemaluan Keluar Nanah
Cara Mengobati Keluar Nanah
Cara yang Ampuh Mengobati Kemaluan Keluar Nanah
mengobati penyakit kanker serviks secara alami
mengobati penyakit kanker serviks
mengobati kanker serviks secara alami
mengobati kanker serviks
mengobati sakit kanker serviks secara alami
mengobati penyakit kanker serviks secara tradisional
mengobati penyakit kanker serviks dengan cara tradisional
mengobati penyakit kanker serviks tradisional
mengobati kanker serviks secara tradisional