#2 Command Line Options

open
Erik H
5
2012-09-20
2012-09-17
Ryan Backman
No

I'd love to be able to submit much of what is being pulled from DecodePC.properties on the command line, or maybe even the ability to specify which DecodePC.properties file I want setting read from.

Basically, I'm maintaining peoplecode repositories for four instances and need each to output to different directories and connect to different databases. Right now I have seperate folders with unique DecodePC.properties files and their own DecodePCODE.sh scripts. It works, but its a bit messy. I'd like to be able to have one DecodePCODE.sh file that I could pass in what db and output directory to use.

Discussion

  • Erik H
    Erik H
    2012-09-18

    If your environments are for the same PS application (e.g. HRDEV, HRTST, HRUAT and HRPRD), you may be able to achieve this by adding sections to the .properties file (see the lines starting with processUAT=ProcessToSVN in the sample .properties file). You can add as many environments as you want, and you can specify database parameters and a base output path for each (but you cannot specify a different SVN repository).

    An advantage of this approach is that if some PeopleCode segment is modified in DEV, the corresponding code in each of the other environments will also be committed.

    Let me know if this is not clear, or does not suit your needs.

     
  • Erik H
    Erik H
    2012-09-18

    • labels: 2130912 --> enhancements
    • milestone: 1850406 -->
    • assigned_to: nobody --> erikh3
     
  • Ryan Backman
    Ryan Backman
    2012-09-20

    I can see that working for what I have setup at the moment. However, I would like to eventually be able to run a script that would pull all the custom projects we have setup and then run decodePcode on each one. That way we have a seperate repository and history for each project.

     
  • Erik H
    Erik H
    2012-09-20

    Well, I'm not sure if I see the merits of working with many repositories, but in any case, you can already achieve it with a single installation of the tool. Just edit decodepcode_svn.bat and make the class path absolute (e.g. java -cp yourdir\bin;yourdir\ojdbc5.jar ...). You'd still have to have multiple directories, since the program looks for the .properties file in the working directory, but that is all it takes.

     
  • Erik H
    Erik H
    2012-09-20

    • status: open --> pending
     
  • Ryan Backman
    Ryan Backman
    2012-09-20

    • status: pending --> open
     
  • Ryan Backman
    Ryan Backman
    2012-09-20

    That is what I have done in order to get the six different repos I'm working with. I'm just facing the problem of 30 or so custom projects. It would be nice to not have to create separate directories and properties files for each and instead be able to query my list of custom projects from the db and pass dynamic output variables based on the project name.