Automap: Allow deploy target location to be defined in the .waj

Summary

I would like to be able to define the deployment location directly in the .waj. Currently, you can only point to the deployTarget defined in the deploy.pref file, and that file is hard to access programmatically.

Detailed Description

I have a "build" system that works outside of the Automap GUI. We build .waj files and pass them to Automap as a command-line option. This allows us to make subtle changes to the .waj without having to have one .waj for each instance.

The hardest part of the problem is defining the deployment target in code. To change a deployTarget, I have to first find the current deploy.pref file using these steps:

  1. Find the deployTarget value in the .waj.
  2. Load '\Program Files\WebWorks\ePublisher\WebWorks.AutoMap.exe.config' and extract the current installed version of ePublisher.

  3. Using the version number find the current deploy.pref file, which is located in '%USERPROFILE%\Local Settings\Application Data\WebWorks\ePublisher Platform\<version>\deploy.pref'

  4. Change the value of the location in deploy.pref for the deployTarget associated with the .waj.

I would rather have an option in the .waj that allows me to specify the directory. Something like:

   1 <?xml version="1.0" encoding="utf-8"?>
   2 <Job ... >
   3   <Targets>
   4     <Target ... deployTarget="C:\Deployments\ThisJob\" ... >

The rule might be, "If not found in deploy.pref, try as a path", or "If the value ends with a separator, assume path". Or add another attribute.

It would also be nice if there was an easier way to get the current installed version number. Instead of extracting it from a filename path, I wold like to query it as an XML attribute from a file in a fixed location.


:) :)) :( ;) :\ |) X-( B)
BenAllums   Mike,

Have you checked into the -d option?  It allows you to specify the --deployfolder on the command line.
2013-09-16 19:50:54
:)) MikeHedblom   Totally missed that one.  <dope slap>  Thanks Ben.

Though it would still be nice to have a way to easily get the version number.  Perhaps a command line option that just returns the version?
2013-09-17 10:59:59

Enhancements/Automap: Allow deploy target location to be defined in the .waj (last edited 2013-09-12 23:37:41 by MikeHedblom)