Replicating ant script (env vars and copy of common files) in JDeveloper
We have an existing application that was building in Eclipse using Ant scripts.
We now have a requirement to build and deploy using JDeveloper. We have been successful in some aspects, but now are trying to replicate in JDeveloper the use of environment variables and copy of common folders as our Ant Scripts did for us in Eclipse. Is it possible to replicate this in JDeveloper?
Thanks in advance.
Our client requests a JDeveloper project file only that they can build and deploy. They do not approve of the use of Ant scripts, so we are trying to mirror our application that was built in Eclipse with Ant into JDeveloper (with no Ant).
We are looking into workarounds to eliminate the need for a replacement of the Ant script to copy common files into the directories needed, and to determine those paths based on the environment varaibles, but none of hte work-arounds thus far are great options. Based on my reserach, I have not found a way to implement these functions in JDeveloper without the use of an Ant script. Is this an accurate statement?
Similar Messages
-
Need steps to create ant scripts for publishing and deploying projects.
Need steps to create ant scripts for publishing and deploying projects.
Have got ant, Oracle BPM Enterprise WL edition installed , Need to know what are the other configurations to be done.
Any working example would help me to understand, please do mail me at [email protected]
Thanks in advance.
-SreeSreekant,
Please find the build file to publish and deploy.
<project name="deployProject"
xmlns:fuego="antlib:fuego.tools.ant.enterprise"
xmlns:fuego.j2ee="antlib:fuego.tools.ant.j2ee" default = "publish">
<property file="./Properties/fuego_deploy.properties"/>
<fuego:passport id="fuego.passport"
directoryid="${fuego.directoryid}"
preset="engine" />
<target name="publish" description="Publish and deploy processes" depends = "takeInputs">
<!-- Open a session to the Oracle BPM directory -->
<fuego:session
passportref="fuego.passport"
verbose="true"
properties="${fuego.basedir}/conf/directory.xml"
haltonerror="true" >
<!-- Publish processes -->
<fuego:publish fpr="${fuego.project.name}"
deploy="true"
engine="${fuego.engineName}"
importdata = "${fuego.importdata}"
automaproles="${fuego.automaproles}"
automapbuspars = "${fuego.automapbuspars}"
automapvars="${fuego.automapvars}"
automapconfigs = "${fuego.automapconfigs}">
</fuego:publish>
</fuego:session>
</target>
<target name= "takeInputs" >
<input
message="Please enter admin-username:"
addproperty="fuego.participant"
/>
<input
message="Please enter admin-password:"
addproperty="fuego.password"
>
</input>
</target>
</project>
and find the properties I have used..
fuego.basedir=C:\OraBPMEnterpriseHome
fuego.directoryid=default
fuego.engineName = bpmengine
fuego.project.name = E:/antExamples/Project/CommonUtilities
# If the below property is true then ant script imports data from the project, as defined in Studio.
# This includes importing:
# •Holiday and Calendar rules
# •Organizational Units
# •Roles
# •Resource configurations
# •External Variables
fuego.importdata = true
#If the below property is true ant script automatically map abstract roles to real ones with the same name.
fuego.automaproles=true
#If the below property is true ant script automatically map business parameter variable names (as defined in the project design) to an business parameter variable id with the same name (as defined in the Fuego Enterprise directory).
fuego.automapbuspars = true
#If the below property is true ant script automatically map external variable names (as defined in the project design) to an external variable id with the same name (as defined in the Fuego Enterprise directory).
fuego.automapvars=true
#If the below property is true ant script automatically map External Resources configurations (as defined in the project design) to real Configurations with the same name (as defined in the Fuego Enterprise directory).
fuego.automapconfigs = true -
Script to search and relink linked image files that were moved?
Good afternoon
My indesign product catalog has links with a lot of different folders around in my hard disk, not a single folder. And to keep my catalog up to date I must package it.
When I move my linked files in my computer because I change the folder structure or do some cleaning, my indd loses track of its linked files. Currently I need to relink one by one.
Therefore I would like to find a script which would scan the hard disk with the all broken links in mind to detect their new location and relink. Yes I am a lazy person.
Thanks for any clue,Thanks so much! I will try soonest.
How does your script react in the unlikely case of duplicates?
Date: Thu, 18 Jun 2009 12:43:47 -0600
From: [email protected]
To: [email protected]
Subject: Script to search and relink linked image files that were moved?
At least your honest about your laziness.... Here's your reward:
Just a hint, don't select root of your volume, it will loop through every folder in existence, but key to this script is, if you know the general location, select into that folder hierarchy and the script will test for a relative path, otherwise, come back in a few days, and it will be finished.
~mike
var processed = 0
var skipped = 0
var updated = 0
if (app.documents.length > 0){
if(app.activeDocument.links.length > 0){
var mydoc = app.activeDocument;
var mylinks = mydoc.links;
var myRoot = Folder.selectDialog("Choose the volume or server where assets are located", undefined, false);
main();
else
{ alert("No Links present")
else{alert("No Documents Open")
function main(){
if(myRoot != null){
for(var i = 0; i < mylinks.length ; i++){
if(mylinks.item(i).status == LinkStatus.linkMissing){
var linkdata= mylinks.item(i).filePath;
var my_result = linkRepair(linkdata);
if (my_result == false){
var filetype = "." + mylinks.item(i).linkType;
var mysearch = search(linkdata, filetype);
if(mysearch != undefined){
var myswitch = confirm(mylinks.item(i).name + " has been found in a different location, Relink and Update?", "Relinker")
if(myswitch){
mylinks.item(i).relink(File(mysearch));
mylinks.item(i).update();
else{
alert("" + mylinks.item(i).name " was not found\nFolders processed: "processed + "\nFiles skipped: "+ skipped)
else{ alert( my_result + " has been found");
mylinks.item(i).relink(File(my_result));
function linkRepair(linkdata){
var mypath = linkdata.split(":")
my_status = analyzePath(mypath)
if(my_status == true){alert("UPDATED");
updated++
return my_status
function analyzePath(mypath){
var num = mypath.length ;
for(var i = 0; i < num-1; i++){
mypath.shift()
var newpath = pathRebuild(mypath)
newpath = (myRoot + newpath)
if(File(newpath).exists){
return newpath
return false
function pathRebuild(pathArray){
var solidPath = ""
for(var i = 0; i < pathArray.length ; i++){
solidPath += "/" + pathArray+ ;
return solidPath;
function search(linkdata, filetype){
var mypath = linkdata.split(":")
var mylink = mypath.pop();
var OK = confirm("Relative Path does not exist, search folder hiearchy for file?", true, "File Scanner")
if(OK){
var myscanresult = getfiles(mylink, myRoot)
return myscanresult
function getfiles(mylink, myBase){
myBase = Folder(myBase);
var files = myBase.getFiles("*")
for(var i = 0; i < files.length; i++){
try{
var foldertest = files+.getFiles();
processed++
var myfile = File(files+ + "/" + mylink)
if(myfile.exists == true){
return myfile
break;
else{
var myscan = getfiles(mylink, Folder(files+))
if(myscan != undefined){
return myscan
break;
catch(myerror){
skipped++
> -
A Script to read and copy from a Windows Mobile device
Hey forum....
When I dock my Windows Mobile device in a Windows 7 PC, the Windows Mobile Device Center opens and I can browse the device and copy files between it and the PC. However, I'm looking some kind of way to automate this process. All I'm really interested in
is a single file named TEXT.TXT which is stored in the My Documents folder. Basically, I'm looking for a script that will detect the Windows device (it's USB-attached) when docked, find the file TEXT.TXT in the My Documents folder and then copy this file to
the /Temp folder on the desktop.
I've tried using the synchronization feature of WMDC but it copies the file to a documents folder set up for the specific device. Instead, I'm looking to find and copy the file to C:\TEMP regardless of the device.
Thanks in advance for any help!
EverettHey forum....
When I dock my Windows Mobile device in a Windows 7 PC, the Windows Mobile Device Center opens and I can browse the device and copy files between it and the PC. However, I'm looking some kind of way to automate this process. All I'm really interested in
is a single file named TEXT.TXT which is stored in the My Documents folder. Basically, I'm looking for a script that will detect the Windows device (it's USB-attached) when docked, find the file TEXT.TXT in the My Documents folder and then copy this file to
the /Temp folder on the desktop.
I've tried using the synchronization feature of WMDC but it copies the file to a documents folder set up for the specific device. Instead, I'm looking to find and copy the file to C:\TEMP regardless of the device.
Thanks in advance for any help!
Everett
Just configure the device to sync the folders you want to sync. Start by reading the help very carefully.
This is not a scripting question and this forum is not for end user questions. I suggest posting in the Windows Phone forum.
You can also sync via OneDrive over a cellular or wireless connection.
¯\_(ツ)_/¯ -
Hello can some one assit me please. I have purchased a new lap top and copied my old itunes files accross so i do not loose all my music, and have to start again. I can play and see allof my tunes and play these. However I am unable to access the Itunes store through my itunes files. It will not interface at all. I can access itunes store through the Web, but not through the my ituntes file. I have gone in and authorised the laptop through the various process. Highly frustrated already paided a computer person to fix this. However hed deleated all files and started again he had it work and then I turned computer on again and it will not interface from the itune file to itunes, So if I copy a CD it will not tell you the name of the track. I cannot asscess the itunes store to action anything. Please assit me
Regards
KarenI am not an expert, but assuming that you have a Windows or Mac folder with music in it and want to move that to a new laptop, I think you have to import it into iTunes. iTunes needs to associate each file with a link, so copying it over will not associate a link.
Delete the files and try importing. -
Location of thumbnails and copying imported photo files?
I am just learning to use Photoshop Elements 9 in a Windows XP computer. In Organizer, I imported some photo files from an external hard drive and then thumbnail photos were created in the workspace of the Orgnaizer.
1) Where are these thumbnail photo files located? I looked in the Adobe folder, C:\Documents and Settings\Richard\My Documents\My Pictures\Adobe but the thumbnails are not there.
2) How do I prevent photo files from being copied to my C: hard drive when they are imported from my camera or external hard drive, or when they are scanned into the Organizer?
Thanks.
Richard
Message was edited by: Cleftone
Message was edited by: CleftoneSpecify a custom location for your catalog. Organizer will create a folder (named for the catalog) at that location and the catalog and its associated thumbnail files will be created in that folder.
As mentioned earlier, you can also specify the location for imported photos.
Ken -
I just want to see if there is any way that I can import the files into iMovie as an alias like Final Cut Pro and Express does. I hate having to copy the file again because it takes up alot of space on my Mac. Thanks.
No, but you can import your Event to an external drive from the import screen.
It is also possible to create a symbolic link to another location. The link stays in your iMovie Events or iMovie Project folder, but the actual file resides somewhere else. I don't do it this way, so I can't share any details. -
Is it possible to manage and copy all my files in my stolen iphone?
please help
Without access to the device, the only thing you can do is rely on the last backup you did of the device. You will not be able to get anything from it now.
-
Exported ant script -- NoClassDefFound?
I've exported ant script from workshop (wls9.2 eclipse) and I was able to build the app.war (web services) ok.
However I saw message like this:
"assembly: Imput fileset contained no files, nothing to do."
And when I deployed the war to server and tried to access the webservices, it gave me NoClassDefFound error.
Also I noticed that the ".staging" directory has empty "lib" dir under it.
Does anyone know how to fix it?
Here is the generated build.xml and workspace.xml.
========================= workspace.xml==============
<?xml version="1.0" encoding="UTF-8"?>
<node name="metadata">
<node name="projects">
<node name="billingservice">
<attribute name="location" value="C:/home/rlee/projects/telepacific/billingservice"/>
</node>
</node>
<node name="library-modules">
<node name="library-module">
<attribute name="location" value="%wl.home%/common/deployable-libraries/wls-commonslogging-bridge.war"/>
</node>
<node name="library-module">
<attribute name="location" value="%wl.home%/common/deployable-libraries/weblogic-controls-1.0.war"/>
</node>
<node name="library-module">
<attribute name="location" value="%wl.home%/common/deployable-libraries/beehive-controls-1.0.war"/>
</node>
</node>
<node name="server-runtimes">
<node name="BEA WebLogic v9.2">
<attribute name="location" value="%wl.home%"/>
</node>
</node>
<node name="vm-locations">
<attribute name="defaultVM" value="C:/bea/wls922/jdk150_10"/>
<node name="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/BEA WebLogic v9.2 JRE">
<attribute name="location" value="c:/bea/wls922/jrockit90_150_10"/>
</node>
</node>
<node name="classpath-vars">
<node name="SDKS_HOME">
<attribute name="value" value="c:/home/rlee/projects/mpower/sdks"/>
</node>
<node name="WEBLOGIC_HOME">
<attribute name="value" value="%wl.home%"/>
</node>
</node>
</node>
======================= end of workspace.xml==============
==================== exported build.xml ====================
<project default="build">
<description>
Project build script. All public targets require the "workspace" property to be
set at invocation. It can either point at the Eclipse workspace directory that
this project belongs to or an exported workspace.xml file. The wl.home property
may also need to be specified unless WL_HOME environment variable is defined.
</description>
<target name="init.env" unless="init.env.executed">
<property name="init.env.executed" value="true"/>
<property environment="env"/>
<condition property="wl.home" value="${env.WL_HOME}">
<isset property="env.WL_HOME"/>
</condition>
<fail unless="wl.home" message="The wl.home property needs to be set!"/>
</target>
<target name="init.typedefs" depends="init.env" unless="init.typedefs.executed">
<property name="init.typedefs.executed" value="true"/>
<typedef resource="com/bea/wlw/antlib/antlib.xml">
<classpath>
<fileset dir="${wl.home}">
<include name="workshop/lib/wlw-antlib.jar"/>
<include name="workshop/lib/wlw-util.jar"/>
<include name="workshop/lib/wlw-libmodules.jar"/>
<include name="workshop/lib/wlw-splitsrc.jar"/>
<include name="server/lib/ant/ant-contrib-1.0b1.jar"/>
</fileset>
</classpath>
</typedef>
</target>
<target name="init" depends="init.env,init.typedefs" unless="init.executed">
<property name="init.executed" value="true"/>
<fail unless="workspace" message="The workspace property needs to be set!"/>
<dirname property="project.dir" file="${ant.file}"/>
<property name="echo.metadata" value="false"/>
<mdimport workspace="${workspace}" pjdir="${project.dir}" echo="${echo.metadata}">
<option name="skipAnnotationProcessors" value="com.bea.wlw.webservices.core"/>
</mdimport>
<property name="archive.name" value="${project.name}.war"/>
<property name="uri" value="${archive.name}"/>
<taskdef name="xmlbean"
classname="org.apache.xmlbeans.impl.tool.XMLBean">
<classpath>
<pathelement path="${wl.home}/common/lib/apache_xbean.jar"/>
<pathelement path="${wl.home}/common/eclipse/plugins/com.bea.eclipse.common.lib.apache_xbean2/jsr173_api.jar"/>
</classpath>
</taskdef>
<property name="generated.module.root" value="${project.dir}/build/weboutput"/>
<property name="assembly.src" value="${project.dir}/build/assembly/.src"/>
</target>
<target name="build" depends="init" description=" compiles the source files; does not package the results">
<for list="0,1,2,3,4,5,6,7,8,9" param="i">
<sequential>
<if>
<and>
<isset property="xbean.src.@{i}.dir"/>
<available file="${xbean.src.@{i}.dir}"/>
</and>
<then>
<fileset id="xbean.src.paths.@{i}"
dir="${xbean.src.@{i}.dir}"
includes="${xbean.src.@{i}.include}"
excludes="${xbean.src.@{i}.exclude}"/>
</then>
<else>
<fileset id="xbean.src.paths.@{i}"
file="null_file_set"/>
</else>
</if>
</sequential>
</for>
<if>
<isset property="xbean.include-classpath-contributions"/>
<then>
<path id="xbean.classpath">
<path refid="java.classpath"/>
</path>
</then>
<else>
<path id="xbean.classpath">
<pathelement location="${wl.home}/common/lib/apache_xbean.jar"/>
</path>
</else>
</if>
<mkdir dir="${xbean.src.output.dir}"/>
<mkdir dir="${xbean.bin.output.dir}"/>
<xmlbean
javasource="${xbean.java-version}"
download="${xbean.download-network-urls}"
typesystemname="${xbean.schema-type-name}"
noupa="${xbean.unique-particle-attribution}"
nopvr="${xbean.particle-valid-restriction}"
noannotations="${xbean.skip-annotations}"
ignoreDuplicatesInNamespaces="${xbean.namespaces-to-ignore-dups}"
srcgendir="${xbean.src.output.dir}"
classgendir="${xbean.bin.output.dir}"
classpathref="xbean.classpath"
srconly="true">
<fileset refid="xbean.src.paths.0"/>
<fileset refid="xbean.src.paths.1"/>
<fileset refid="xbean.src.paths.2"/>
<fileset refid="xbean.src.paths.3"/>
<fileset refid="xbean.src.paths.4"/>
<fileset refid="xbean.src.paths.5"/>
<fileset refid="xbean.src.paths.6"/>
<fileset refid="xbean.src.paths.7"/>
<fileset refid="xbean.src.paths.8"/>
<fileset refid="xbean.src.paths.9"/>
</xmlbean>
<if>
<isreference refid="apt.factory.path"/>
<then>
<mkdir dir="${apt.src.output.dir}"/>
<for-each-java-src-path>
<if>
<available file="${.java.src.dir}"/>
<then>
<mkdir dir="${.java.src.output}"/>
<apt
sourcepath="${java.sourcepath}"
srcdir="${.java.src.dir}"
includes="${.java.src.include}"
excludes="${.java.src.exclude}"
destdir="${.java.src.output}"
preprocessdir="${apt.src.output.dir}"
classpathref="java.classpath"
factorypathref="apt.factory.path"
options="${apt.options}"
compile="false"/>
</then>
</if>
</for-each-java-src-path>
</then>
</if>
<for-each-java-src-path>
<if>
<available file="${.java.src.dir}"/>
<then>
<mkdir dir="${.java.src.output}"/>
<javac
sourcepath="${java.sourcepath}"
srcdir="${.java.src.dir}"
includes="${.java.src.include}"
excludes="${.java.src.exclude}"
destdir="${.java.src.output}"
classpathref="java.classpath"
debug="on"/>
</then>
</if>
</for-each-java-src-path>
<delete dir="${generated.module.root}"/>
<mkdir dir="${generated.module.root}"/>
<resolve-path property="user.web.xml" path="WEB-INF/web.xml"/>
<resolve-path property="user.weblogic.xml" path="WEB-INF/weblogic.xml"/>
<copy todir="${generated.module.root}/WEB-INF" file="${user.web.xml}" />
<copy todir="${generated.module.root}/WEB-INF" file="${user.weblogic.xml}" failonerror="false" />
</target>
<target name="clean" depends="init" description=" removes the files and directories generated by the build target">
<if>
<available file="${xbean.src.output.dir}"/>
<then>
<delete includeEmptyDirs="true">
<fileset dir="${xbean.src.output.dir}" includes="**/*"/>
</delete>
</then>
</if>
<if>
<available file="${xbean.bin.output.dir}"/>
<then>
<delete includeEmptyDirs="true">
<fileset dir="${xbean.bin.output.dir}" includes="**/*"/>
</delete>
</then>
</if>
<if>
<available file="${apt.src.output.dir}"/>
<then>
<delete includeEmptyDirs="true">
<fileset dir="${apt.src.output.dir}" includes="**/*"/>
</delete>
</then>
</if>
<for-each-java-src-path>
<if>
<available file="${.java.src.output}"/>
<then>
<if>
<equals arg1="${.java.src.dir}" arg2="${.java.src.output}"/>
<then>
<delete includeEmptyDirs="true">
<fileset dir="${.java.src.output}">
<or>
<filename name="**/*.class"/>
<and>
<type type="dir"/>
<depth min="0"/>
</and>
</or>
</fileset>
</delete>
</then>
<else>
<delete includeEmptyDirs="true">
<fileset dir="${.java.src.output}" includes="**/*"/>
</delete>
</else>
</if>
</then>
</if>
</for-each-java-src-path>
<delete dir="${assembly.src}"/>
<delete dir="${generated.module.root}"/>
<mkdir dir="${generated.module.root}"/>
</target>
<target name="assemble" depends="init" description=" assembles the project for iterative dev deployment; requires that the "ear.root" property is specified">
<property name="prefix" value=""/>
<for-each-resource-path>
<link ear="${ear.root}" source="${.resource.path}" target="${prefix}${uri}/${.resource.prefix}"/>
</for-each-resource-path>
<!-- Link in referenced utility projects into the WEB-INF/lib directory. -->
<for-each-referenced-component>
<if>
<and>
<equals arg1="${.referenced.component.type}" arg2="project"/>
<equals arg1="${.referenced.component.target.path}" arg2="WEB-INF/lib"/>
</and>
<then>
<antex
antfile="${.referenced.component.handle}/build.xml"
dir="${.referenced.component.handle}"
target="assemble"
inheritUserProps="false"
inheritAll="false"
inheritRefs="false">
<property name="wl.home" value="${wl.home}"/>
<property name="patch.home" value="${patch.home}"/>
<property name="workspace" value="${workspace}"/>
<property name="init.typedefs.executed" value="true"/>
<property name="ear.root" value="${ear.root}"/>
<property name="prefix" value="${uri}/WEB-INF/lib/"/>
</antex>
</then>
</if>
</for-each-referenced-component>
<link ear="${ear.root}" source="${xbean.bin.output.dir}" target="${link.target}"/>
<link ear="${ear.root}" source="${generated.module.root}" target="${uri}"/>
<antcall target="assembly" inheritAll="true" inheritRefs="true" >
<param name="ear.root" value="${ear.root}"/>
</antcall>
<antcall target="webservice.build" inheritAll="true" inheritRefs="true" />
</target>
<target name="stage" depends="init" description=" copies all of project's resources and build artifacts into a form that's ready for archive creation; staging directory can be overridden via the "staging.dir" property">
<antcall target="assembly" inheritAll="true" inheritRefs="true" >
<param name="ear.root" value="${ear.staging.dir}"/>
</antcall>
<antcall target="webservice.build" inheritAll="true" inheritRefs="true" />
<property name="staging.dir" value="${project.dir}/.staging"/>
<delete dir="${staging.dir}" quiet="true"/>
<mkdir dir="${staging.dir}"/>
<for-each-resource-path>
<if>
<available file="${.resource.path}"/>
<then>
<if>
<isfile path="${.resource.path}"/>
<then>
<copy file="${.resource.path}" tofile="${staging.dir}/${.resource.prefix}"/>
</then>
<else>
<copy todir="${staging.dir}/${.resource.prefix}">
<fileset dir="${.resource.path}" includes="${.resource.include}" excludes="${.resource.exclude}"/>
</copy>
</else>
</if>
</then>
</if>
</for-each-resource-path>
<!-- Packaged referenced utility projects into the WEB-INF/lib directory. -->
<property name="webinflib" value="${staging.dir}/WEB-INF/lib"/>
<mkdir dir="${webinflib}"/>
<for-each-referenced-component>
<if>
<and>
<equals arg1="${.referenced.component.type}" arg2="project"/>
<equals arg1="${.referenced.component.target.path}" arg2="WEB-INF/lib"/>
</and>
<then>
<antex
antfile="${.referenced.component.handle}/build.xml"
dir="${.referenced.component.handle}"
target="archive"
inheritUserProps="false"
inheritAll="false"
inheritRefs="false">
<property name="wl.home" value="${wl.home}"/>
<property name="patch.home" value="${patch.home}"/>
<property name="workspace" value="${workspace}"/>
<property name="init.typedefs.executed" value="true"/>
<property name="archive.dir" value="${webinflib}"/>
</antex>
</then>
</if>
</for-each-referenced-component>
<copy todir="${staging.dir}/${xbean.deploy.prefix}">
<fileset dir="${xbean.bin.output.dir}"/>
</copy>
<if>
<available file="${generated.module.root}"/>
<then>
<copy todir="${staging.dir}" overwrite="true">
<fileset dir="${generated.module.root}"/>
</copy>
</then>
</if>
<taskdef name="build-manifests"
classname="weblogic.ant.taskdefs.build.AnnotationManifestTask"
onerror="fail" />
<path id="annotation.manifest.search.path">
<fileset dir="${staging.dir}">
<include name="WEB-INF/lib/*.jar"/>
</fileset>
<pathelement location="${staging.dir}/WEB-INF/classes"/>
</path>
<path id="annotation.manifest.class.path">
<path refid="annotation.manifest.search.path"/>
<path refid="java.classpath"/>
</path>
<build-manifests moduleDir="${staging.dir}"
searchClasspathRef="annotation.manifest.search.path"
classpathRef="annotation.manifest.class.path"
verbose="true"
version=""
stagingDir="${java.io.tmpdir}/.manifest"/>
</target>
<target name="archive" depends="stage" description=" creates an archive containing all projects's resources and build artifacts; archive name and location can be overridden via the "archive.path" property">
<property name="archive.dir" value="${project.dir}"/>
<mkdir dir="${archive.dir}"/>
<zip destfile="${archive.dir}/${archive.name}" encoding="UTF8" whenempty="create">
<fileset dir="${staging.dir}"/>
</zip>
</target>
<target name="stage.to.ear" depends="init">
<property name="prefix" value=""/>
<antcallex target="archive" inheritUserProps="false" inheritAll="false" inheritRefs="false">
<param name="wl.home" value="${wl.home}"/>
<param name="patch.home" value="${patch.home}"/>
<param name="workspace" value="${workspace}"/>
<param name="init.typedefs.executed" value="true"/>
<param name="archive.dir" value="${ear.staging.dir}${prefix}"/>
<param name="ear.staging.dir" value="${ear.staging.dir}"/>
</antcallex>
</target>
<target name="generated.root.init" depends="init">
<property name="generated.module.root" value="${project.dir}/build/weboutput"/>
</target>
<target name="assembly" depends="init,generated.root.init">
<taskdef name="assemble"
classname="com.bea.control.assembly.AssembleTask"
classpathref="java.classpath"
onerror="report" />
<property name="assembly.src.output" value="${java.src.0.output}"/>
<mkdir dir="${assembly.src}"/>
<path id="assembly.classpath">
<path refid="java.classpath" />
<pathelement location="${assembly.src.output}" />
<pathelement path="${java.outpath}" />
<pathelement path="${java.sourcepath}"/>
</path>
<assemble
moduleDir="${generated.module.root}"
moduleName="${project.name}"
srcOutputDir="${assembly.src}"
appRootDir="${ear.root}">
<assemblyContext factory="org.apache.beehive.controls.runtime.assembly.WebAppAssemblyContext$Factory" />
<assemblyContext factory="org.apache.beehive.controls.runtime.assembly.AppAssemblyContext$Factory" />
<classpath refid="assembly.classpath" />
<fileset dir="${project.dir}">
<include name="**/*.controls.properties" />
</fileset>
</assemble>
<apt
srcdir="${assembly.src}"
preprocessdir="${apt.src.output.dir}"
factorypathref="apt.factory.path"
options="${apt.options}"
compile="false">
<classpath refid="assembly.classpath" />
</apt>
<javac
srcdir="${assembly.src}"
destdir="${assembly.src.output}"
debug="on">
<classpath refid="assembly.classpath" />
</javac>
</target>
<target name="webservice.build" depends="init,generated.root.init">
<path id="jwsc.srcpath">
<path path="${java.sourcepath}" />
<pathelement path="build/assembly/.src" />
</path>
<taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask" />
<property name="jwsc.module.root" value="${project.dir}/build/weboutput"/>
<property name="jwsc.contextpath" value="billingservice"/>
<property name="jwsc.srcpath.prop" refid="jwsc.srcpath"/>
<path id="jwsc.classpath">
<path refid="java.classpath" />
<pathelement path="${java.outpath}" />
</path>
<jwsc
destdir="${project.dir}/build"
classpathref="jwsc.classpath"
>
<module name="weboutput" explode="true" contextPath="${jwsc.contextpath}">
<jwsFileSet srcdir="${jwsc.srcpath.prop}">
<include name="**/*.java"/>
</jwsFileSet>
<descriptor file="${jwsc.module.root}/WEB-INF/web.xml" />
<descriptor file="${jwsc.module.root}/WEB-INF/weblogic.xml" />
</module>
</jwsc>
</target>
</project>
==================== end of exported build.xml =========
Thanks!
Edited by renqili at 08/09/2007 10:52 AMIt looks a bug to me. The exported ant script does not take care the jar files setup in the classpath in workshop/eclipes and copy them to the WEB-INFO/lib directory.
-
ANT_HOME is set incorrectly while deploying BPEL 11g using Ant script
Hi All,
I am new to ant script, i am deploying BPEL process(11g) using ant script. I set ANT_HOME to G:\Oracle\Middleware\jdeveloper\ant (the location of ant ) and i set PATH to G:\Oracle\Middleware\jdeveloper\ant\bin
while excecuting 'call ant -f build.soa.xml deployeComposite -Dtargetenv dev
i am getting the this error
"ANT_HOME is set incorrectly or ant could not be located please set ANT_HOME"
please help me in this issue..
Thanks in advanceWhy? Just copy/paste the error into Google and help yourself.
For further assistance with your SOA suite deployment issue, refer to a SOA suite related forum. This has absolutely -nothing- to do with general Java development and especially not the java compiler. -
Retrieve files from a text list and copy them to other location?
Hi,
I work as a photographer: my clients often send me their final selections of my pictures as a text list (i.e. file001.jpg file 004.jpg file 054.jpg and so on), so I have to go back and pick each picture "by hand": this is a huge waste of time since I'm dealing with hundreds of picks in thousands of files.
My question is: is there a way to retrieve and copy the selected files automatically? I was thinking about feeding the list of files to Automator, but I can't seem to find a way to do it.
any hints?
thanks in advance
Andreaok I seemed to have it sorted out...
Niel, I'm no programmer at all, but thanx to your script I was able to come up with this:
tell application "Finder"
set source_folder to choose folder with prompt "Select folder with all pictures"
set the_files to every paragraph of (read (choose file with prompt "Select text file with the names of the pictures to be copied"))
set target_folder to choose folder with prompt "Select destination folder"
repeat with this_file in the_files
try
duplicate item this_file of source_folder to target_folder
end try
end repeat
end tell
that seems to work!
needs some fine tuning, like including subfolders of the first folder chosen!
THANX AGAIN!
Message was edited by: SAPO!! -
Assembly failed Exception during building of WLI application - Ant Script
Hi all,
I have a WLI 10.3 application which builds fine when built within the workshop.
But when the ant scripts are exported and the application is built through ant scripts I'm getting the below mentioned errors.The problem occurs during building of the 'assembly' section of the web application.
Any help on this would be greatly appreciated.Thanks in advance.
The error message:
[assemble] <Fri Mar 26 13:05:03 PDT 2010> <Error> <J2EE> <BEA-160197> <Unable to load descriptor C:\bea10gR3Wli\user_projects\workspaces\Flow_Through_Package\Servic
eActivation\integration\build\weboutput\WEB-INF\web.xml of module null. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed
[assemble] at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:152)
[assemble] at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:306)
[assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
[assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:409)
[assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:759)
[assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768)
[assemble] at weblogic.servlet.internal.WebAppDescriptor.getWebAppBean(WebAppDescriptor.java:141)
[assemble] at com.bea.control.assembly.internal.AssemblyUtils.loadWebXml(AssemblyUtils.java:113)
[assemble] at com.bea.wlw.runtime.messagebuffer.assembly.MessageBufferAssembler.doWebXmlDDManipulation(MessageBufferAssembler.java:254)
[assemble] at com.bea.wlw.runtime.messagebuffer.assembly.MessageBufferAssembler.assemble(MessageBufferAssembler.java:139)
[assemble] at com.bea.control.assembly.internal.AssemblerImpl.postAssemble(AssemblerImpl.java:123)
[assemble] at com.bea.control.assembly.internal.AssemblerImpl.assemble(AssemblerImpl.java:71)
[assemble] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[assemble] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[assemble] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[assemble] at java.lang.reflect.Method.invoke(Method.java:597)
[assemble] at com.bea.control.assembly.internal.Assembler.assemble(Assembler.java:91)
[assemble] at com.bea.control.assembly.AssembleTask.assemble(AssembleTask.java:234)
[assemble] at com.bea.control.assembly.AssembleTask.execute(AssembleTask.java:206)
[assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
[assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
[assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[assemble] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
[assemble] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[assemble] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
[assemble] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
[assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
[assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
[assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[assemble] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[assemble] at com.bea.workshop.cmdline.antlib.AntExTask.execute(AntExTask.java:406)
[assemble] at com.bea.workshop.cmdline.antlib.AntCallExTask.execute(AntCallExTask.java:118)
[assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
[assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
[assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[assemble] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[assemble] at com.bea.workshop.cmdline.antlib.AntExTask.execute(AntExTask.java:406)
[assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
[assemble] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
[assemble] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
[assemble] at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
[assemble] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[assemble] at java.lang.reflect.Method.invoke(Method.java:597)
[assemble] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123)
[assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
[assemble] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
[assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
[assemble] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
[assemble] at net.sf.antcontrib.logic.ForTask.doSequentialIteration(ForTask.java:259)
[assemble] at net.sf.antcontrib.logic.ForTask.doToken(ForTask.java:268)
[assemble] at net.sf.antcontrib.logic.ForTask.doTheTasks(ForTask.java:299)
[assemble] at net.sf.antcontrib.logic.ForTask.execute(ForTask.java:244)
[assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
[assemble] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
[assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
[assemble] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
[assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
[assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
[assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[assemble] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[assemble] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[assemble] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[assemble] at org.apache.tools.ant.Main.runBuild(Main.java:668)
[assemble] at org.apache.tools.ant.Main.startAnt(Main.java:187)
[assemble] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[assemble] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
[assemble] Caused by: com.bea.xml.XmlException: java.lang.AssertionError: java.lang.LinkageError: Class weblogic/descriptor/Descriptor violates loader constraints
[assemble] at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:54)
[assemble] at com.bea.staxb.runtime.internal.RuntimeBindingProperty.createObjectViaFactory(RuntimeBindingProperty.java:256)
[assemble] at com.bea.staxb.runtime.internal.RuntimeBindingProperty.createIntermediary(RuntimeBindingProperty.java:129)
[assemble] at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.unmarshalElementProperty(LiteralUnmarshalResult.java:162)
[assemble] at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillElementProp(LiteralUnmarshalResult.java:136)
[assemble] at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents(ByNameUnmarshaller.java:51)
[assemble] at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshalIntoIntermediary(AttributeUnmarshaller.java:47)
[assemble] at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:189)
[assemble] at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:159)
[assemble] at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:65)
[assemble] at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:141)
[assemble] ... 78 more
[assemble] Caused by: java.lang.AssertionError: java.lang.LinkageError: Class weblogic/descriptor/Descriptor violates loader constraints
[assemble] at weblogic.descriptor.internal.AbstractDescriptorBean._createChildBean(AbstractDescriptorBean.java:748)
[assemble] at weblogic.descriptor.internal.AbstractDescriptorBean.createObject(AbstractDescriptorBean.java:88)
[assemble] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[assemble] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[assemble] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[assemble] at java.lang.reflect.Method.invoke(Method.java:597)
[assemble] at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:48)
[assemble] ... 88 more
[assemble] Caused by: java.lang.LinkageError: Class weblogic/descriptor/Descriptor violates loader constraints
[assemble] at weblogic.descriptor.internal.AbstractDescriptorBean.<init>(AbstractDescriptorBean.java:45)
[assemble] at weblogic.j2ee.descriptor.ListenerBeanImpl.<init>(ListenerBeanImpl.java:59)
[assemble] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[assemble] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[assemble] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[assemble] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
[assemble] at weblogic.descriptor.internal.AbstractDescriptorBean._createChildBean(AbstractDescriptorBean.java:740)
[assemble] at weblogic.descriptor.internal.AbstractDescriptorBean.createObject(AbstractDescriptorBean.java:88)
[assemble] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[assemble] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[assemble] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[assemble] at java.lang.reflect.Method.invoke(Method.java:597)
[assemble] at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:48)
[assemble] at com.bea.staxb.runtime.internal.RuntimeBindingProperty.createObjectViaFactory(RuntimeBindingProperty.java:256)
[assemble] at com.bea.staxb.runtime.internal.RuntimeBindingProperty.createIntermediary(RuntimeBindingProperty.java:129)
[assemble] at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.unmarshalElementProperty(LiteralUnmarshalResult.java:162)
[assemble] at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillElementProp(LiteralUnmarshalResult.java:136)
[assemble] at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents(ByNameUnmarshaller.java:51)
[assemble] at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshalIntoIntermediary(AttributeUnmarshaller.java:48)
[assemble] at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:189)
[assemble] at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:159)
[assemble] at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:65)
[assemble] at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:141)
[assemble] at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:306)
[assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
[assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:409)
[assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:759)
[assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768)
[assemble] at weblogic.servlet.internal.WebAppDescriptor.getWebAppBean(WebAppDescriptor.java:141)
[assemble] at com.bea.control.assembly.internal.AssemblyUtils.loadWebXml(AssemblyUtils.java:113)
[assemble] at com.bea.wlw.runtime.messagebuffer.assembly.MessageBufferAssembler.doWebXmlDDManipulation(MessageBufferAssembler.java:254)
[assemble] at com.bea.wlw.runtime.messagebuffer.assembly.MessageBufferAssembler.assemble(MessageBufferAssembler.java:140)
[assemble] at com.bea.control.assembly.internal.AssemblerImpl.postAssemble(AssemblerImpl.java:123)
[assemble] at com.bea.control.assembly.internal.AssemblerImpl.assemble(AssemblerImpl.java:73)
[assemble] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[assemble] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[assemble] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[assemble] at java.lang.reflect.Method.invoke(Method.java:597)
[assemble] at com.bea.control.assembly.internal.Assembler.assemble(Assembler.java:91)
[assemble] at com.bea.control.assembly.AssembleTask.assemble(AssembleTask.java:236)
[assemble] at com.bea.control.assembly.AssembleTask.execute(AssembleTask.java:206)
[assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
[assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
[assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[assemble] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:39)
[assemble] at org.apache.tools.ant.Project.executeTargets(Project.java:1070)
[assemble] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
[assemble] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:108)
[assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
[assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
[assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[assemble] at org.apache.tools.ant.Project.executeTarget(Project.java:1186)
[assemble] at com.bea.workshop.cmdline.antlib.AntExTask.execute(AntExTask.java:406)
[assemble] at com.bea.workshop.cmdline.antlib.AntCallExTask.execute(AntCallExTask.java:119)
[assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
[assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
[assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[assemble] at org.apache.tools.ant.Project.executeTarget(Project.java:1186)
[assemble] at com.bea.workshop.cmdline.antlib.AntExTask.execute(AntExTask.java:406)
[assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
[assemble] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
[assemble] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
[assemble] at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
[assemble] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[assemble] at java.lang.reflect.Method.invoke(Method.java:597)
[assemble] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123)
[assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
[assemble] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
[assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
[assemble] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
[assemble] at net.sf.antcontrib.logic.ForTask.doSequentialIteration(ForTask.java:259)
[assemble] at net.sf.antcontrib.logic.ForTask.doToken(ForTask.java:268)
[assemble] at net.sf.antcontrib.logic.ForTask.doTheTasks(ForTask.java:299)
[assemble] at net.sf.antcontrib.logic.ForTask.execute(ForTask.java:245)
[assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
[assemble] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
[assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
[assemble] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
[assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
[assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
[assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[assemble] at org.apache.tools.ant.Project.executeTarget(Project.java:1186)
[assemble] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[assemble] at org.apache.tools.ant.Project.executeTargets(Project.java:1070)
[assemble] at org.apache.tools.ant.Main.runBuild(Main.java:668)
[assemble] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[assemble] ... 2 more
[assemble] .>
[assemble] Assembly failed - Control Assembly process failed
[assemble] Caused by: Unable to read file C:\bea10gR3Wli\user_projects\workspaces\Flow_Through_Package\ServiceActivation\integration\build\weboutput\WEB-INF\web.xml
during assembly
[assemble] Caused by: Unmarshaller failed
[assemble] Caused by: java.lang.AssertionError: java.lang.LinkageError: Class weblogic/descriptor/Descriptor violates loader constraints
[assemble] Caused by: java.lang.LinkageError: Class weblogic/descriptor/Descriptor violates loader constraints
[assemble] Caused by: Class weblogic/descriptor/Descriptor violates loader constraintsAdded weblogic.jar in the classpath and that resolved the issue.
-
Import and Copy Opening – One Task & One Prompt Set
Hi Experts,
We want to create one data manager package that contains both import from BW with UI and copy opening. We ran into some issues. Maybe you can help:
We created a new process chain that contains both tasks, and created a new DM package that has both scripts. Users only want to enter parameters such as entity and time one time for both tasks...
When I commented out the Copy opening prompts, relying on the prompts from the Import from BW, I receive an error. The message:
Task name LOAD
INFOPROVIDER:
Replace and Clear Submit
count: 1114
Replace and Clear Reject
count: 0
Aggregate count: 376
Submit count: 312
Reject count: 0
Invalidate
selection condition
I believe it's because we have the %SELECTION% recorded twice in the script (thinking that we will take the variables from the import and continue to use for the Copy opening).
Also thought to switch around the prompts, hard coding the cube name, and using a dimension selection screen like Copy Opening.
Any ideas for executing this would be really helpful. Below please find the standard scripts for
import and Copy Opening.
Thank you.
Eyal Feiler
'DEBUG(ON)
PROMPT(INFOPROVIDERSELECTION,%InforProvide%,%SELECTION%,"Please select the InfoProvider
and set selection (InfoProvider list is restricted by both
BW and BPC authority)",,)
PROMPT(KEYDATE,%KEYDATE%,"Key date",0)
INFO(%TEMPNO1%,%INCREASENO%)
INFO(%ACTNO%,%INCREASENO%)
TASK(/CPMB/INFOPROVIDER_CONVERT,OUTPUTNO,%TEMPNO1%)
TASK(/CPMB/INFOPROVIDER_CONVERT,ACT_FILE_NO,%ACTNO%)
INFO(%MAI_TRFILE%,\ROOT\WEBFOLDERS\MAI_CONSO\Consolidation\DATAMANAGER\TRANSFORMATIONFILES\EXAMPLES\MA\T_FILE_BW_IPROVIDER.XLS)
TASK(/CPMB/INFOPROVIDER_CONVERT,TRANSFORMATIONFILEPATH , %MAI_TRFILE%)
TASK(/CPMB/INFOPROVIDER_CONVERT,SUSER,%USER%)
TASK(/CPMB/INFOPROVIDER_CONVERT,SAPPSET,%APPSET%)
TASK(/CPMB/INFOPROVIDER_CONVERT,SAPP,%APP%)
TASK(/CPMB/INFOPROVIDER_CONVERT,FILE,%InforProvide%)
TASK(/CPMB/INFOPROVIDER_CONVERT,INFOPROV_SELECTION,%SELECTION%)
TASK(/CPMB/INFOPROVIDER_CONVERT,KEYDATE,%KEYDATE%)
TASK(/CPMB/LOAD_IP,PREPROCESSMODE,0)
TASK(/CPMB/LOAD_IP,TARGETMODE,2)
TASK(/CPMB/LOAD_IP,INPUTNO,%TEMPNO1%)
TASK(/CPMB/LOAD_IP,ACT_FILE_NO,%ACTNO%)
TASK(/CPMB/LOAD_IP,RUNLOGIC,1)
TASK(/CPMB/LOAD_IP,CHECKLCK,1)
TASK(/CPMB/LOAD_IP,KEYDATE,%KEYDATE%)
'supress
prompts for work status default script and replace - default as yes and yes
replace. Default transformation file
path
Copy opening
PROMPT(SELECTINPUT,,,,"%ENTITY_DIM%,%CATEGORY_DIM%,%CURRENCY_DIM%,%TIME_DIM%")
TASK(/CPMB/OPENING_BALANCES_LOGIC,SUSER,%USER%)
TASK(/CPMB/OPENING_BALANCES_LOGIC,SAPPSET,%APPSET%)
TASK(/CPMB/OPENING_BALANCES_LOGIC,SAPP,%APP%)
TASK(/CPMB/OPENING_BALANCES_LOGIC,SELECTION,%SELECTION%)
TASK(/CPMB/OPENING_BALANCES_LOGIC,LOGICFILENAME,COPY_OPENING.LGF)Hi Vadim,
Thanks, isn't %SELECTION% passed to the process chain? I see that the process chain RUN LOGIC contains a field SELECTION. If the value is passed, then I have to change that too?
2) If we change the value to SELECTION2, then how does this variable capture the parameters for the dimensions? I am commenting out the prompt of the copy opening script keeping the first prompt below from the import from BW in order to capture the parameters for both scripts.
PROMPT(INFOPROVIDERSELECTION,%InforProvide%,%SELECTION%,"Please select the InfoProvider
and set selection (InfoProvider list is restricted by both
BW and BPC authority)",,)
Thanks
Eyal -
How to remotely deploy adf application using ant script
Please suggest some pointer on how to remotely deploy adf application using ant script.
I have created automatic inbuild ant script using jdevloper and ojdeploy that create a war file into my adf application deploy folder.
Now i want my war to be deploy remotely on weblogic server.
Is there any inbuld functionality provided by jdeveloper for same.
Can any one please share build.xml for adf application for deploying application remotely.
I try to use wlserver but not much success.
Thanks in advance.
Sumit Bhasin[url http://download.oracle.com/docs/cd/E12839_01/web.1111/e13706/wldeploy.htm]the docs are pretty good.
John -
I am running windows 7 I had to recover my files from an external hard drive when my old computer crashed. I have created a new profiles as outlined in the firefox website and copied all the files into it. I just need to know how to use this new profile when I open firefox, do I just delete the old profile? Or do I have to reinstall firefox.
If you no longer need or intent to use that older profile then you can use the Profile Manager to remove that profile and delete the files.
*http://kb.mozillazine.org/Profile_Manager
*http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox
*http://kb.mozillazine.org/Profile_backup
Maybe you are looking for
-
Error in creation of Tabstrip Control
Hi Guy's Please help me i created one sample tabstrip, when executing this program i am getting error message" SQL Error in the database when accessing a table". Pasting my code here please help me where i did mistake. it is very urgent. 1) IN SE-38
-
Instructions "if-then-else" in the texte
Hello I need to create a RTF template with the management of civility : I tried this: <?xdofx:if MM = 'MRS' then 'Mrs.' else if MM = 'MR' then 'Mr.' else 'Mrs. and Mr.' end if?> And it just works. But when I add this condition in the texte, it does n
-
I am planning on installing Arch on a laptop soon. I have played with it in VirtualBox on a separate computer, and I am going to hope that it works with my touchpad / wireless mouse. I might butcher some jargon in this, but this is how I think LVMs w
-
I created a new Itunes playlist and when I synch my phone it is not visable as a playlist on my phone (Iphone 6), but it does appear on my computer as a playlist on my phone. How can I get it to be visable on my phone?
-
Posting settled internal order costs to PM Order
Hi, Our client doesn't have PM module upto now. So they posted all the maintenance costs to internal orders. All the internal orders are settled properly. Now they want to implement PM module. They want the costs previously posted in internal order s