cancel
Showing results for 
Search instead for 
Did you mean: 

deployDifferenceFS

jameskinley
Champ in-the-making
Champ in-the-making
Hi,

I am getting an exception when calling the DeploymentService.deployDifferenceFS method. The exception is being raised by the following line:

String storeName = srcPath.substring(0, srcPath.indexOf(':'));

I'm guessing this is because my srcPath is formatted incorrectly (e.g. "/WEB-INF/datastore/parent-folder/child-folder").

What is the correct format of this parameter?

Thanks, James.
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
The src path is the path of project to deploy from the AVM store.

In the code I am working on at the moment srcPath is  "main:/"

Main is my name.  If you are using WCM then the url will be of the form <your project name>:/<your root>

jameskinley
Champ in-the-making
Champ in-the-making
Thats sorted it, thanks.

Now the deployer is working I have noticed that the files I deploy get added to the root of the directory specified in application-context.xml of the Alfresco file deployer. How do I get the deployer to put the files in the correct path?

e.g. If my files are located in "project:/root/WEB-INF/parent-folder/child-folder/item-folder/item" then I would like the deployer to put them in that location on the application server "/root/WEB-INF/parent-folder/child-folder/item-folder/item".

Thanks.

pmonks
Star Contributor
Star Contributor
This is configured in the application-context.xml file of the FSR.  Look for the following configuration block:

        <property name="targetData">
            <map>
               <entry key="default">
                   <map>
                      <entry key="root"><value>target</value></entry>   <!– This is the property that needs to be changed –>
                      <entry key="user"><value>admin</value></entry>
                      <entry key="password"><value>admin</value></entry>
                   </map>
               </entry>
            </map>
        </property>
And change the "root" key to the (fully qualified) path where you would like the files to be deployed eg.:


<entry key="root"><value>/var/www</value></entry>
Cheers,
Peter
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.