I have certain files in a particular directory structure in TeamSite. I want to manipulate this structure and deploy the files in a new directory stucture in the web server. I was able to create a filelist using a new directory structure in WF URL task Java class . But when i pass this filelist to my OD config file , the directory structure gets created in the webserver, but the file is not copied.i realized that OD was not able to find the file as i am passing the filelist , which is a path , not available in TeamSite. How do i get the file in OD and copy it in the new directory structure.
Source File: a/b/c/d.jpg in TeamSiteTarget File: b/c/a/e/d.jpg Source specification: <sourceFilesystem area="/default/sample/workarea/pathtofile[color=red]list[/color]" filelist="$FILELIST^">Proposed Target specification: <targetFilesystem area="D:\images\$target"/>
a/b/c/d.jpg
b/c/a/e/d.jpg
<sourceFilesystem area="/default/sample/workarea/pathtofile[color=red]list[/color]" filelist="$FILELIST^">
<targetFilesystem area="D:\images\$target"/>
In short , I want to have a new folder structure in webserver which will be different from TeamSite . i.e. i want to "append" a new directory name in the folder path.
Well I am getting these assets, resizing them and putting them in appropriate folders in TeamSite according to their sizes. The restriction is that when I import them into TeamSite , I can create the size name folder only at the beginning. However , in the webserver, i need to add the size name folder in the middle of the path.
I am able to achieve this when i deploy the files from a single directory, i.e. pass the source and target to the deployment configuration file. Is there a way where i can pass the source and target to the deployment configuration file for each file in the filelist? If that can we done, I will be able to achieve this requirement.
I can programmatically create the sourcepath , targetpath and also the filelist in a deployment preprocessing program (written in Java). But when we pass this on to the deployment task ( which has the deployment configuration file) , i can only pass ONE sourcepath and ONE targetpath as of now . But I need a sourcepath and targetpath for each file in the filelist. You have talked about N deployments. How can that be done ?
Well i looked into the OOTB DeployURLExternalTask class. It extends another class called StartDeployHelper. In the StartDeployHelper class , a variable called "fDeployName" is used as the deployment configuration filename . This is passed onto a perform the deployment. So i believe that an individual source filepath cannot be dynamically modified to another path in the target.
Again my req,a source filepath : a/b/c/d.jpga target filepath : b/a/c/d.jpg.In the above the starting folder "a" needs to be inserted in between the path in the targetpath. (As shown above) Basically it is modifying tthe source file path to deploy it at the target for each file.
Has this been done ?