Tomcat Run Config Issues

In my Tomcat run config xml I have the following

    <log_file path="$PROJECT_DIR$/../../../.IntelliJIdea90/system/tomcat/Unnamed_My-WebApplicationfe3d8679/logs/localhost*" checked="true" skipped="true" show_all="false" alias="Tomcat Log" />


The problem with that is that it is a relative path to my home directory.
This isn't much use when checking in to version control as other people will have the project in different relative paths to their home directories.
I think IDEA automatically updates it, but it means that the Tomcat run config is always marked as changed.

Is there a $HOME variable or some such we can use instead?

The startup config also has full paths in it

      <STARTUP>
        <option name="USE_DEFAULT" value="true" />
        <option name="SCRIPT" value="C:/apache-tomcat-6.0.24/bin/catalina.bat" />
        <option name="VM_PARAMETERS" value="" />
        <option name="PROGRAM_PARAMETERS" value=" run" />
      </STARTUP>

What happens when the next user has a different tomcat installation directory?

Can we use $CATALINA_HOME or some other variable so that IDEA uses the registered Tomcat directory (settings - application servers - Tomcat server)?

1 comment
Comment actions Permalink

The problem with Tomcat log is already reported (see http://youtrack.jetbrains.net/issue/IDEA-41797) and we will try to fix it in the next version. To
fix the problem with hardcoded startup script path you can create a path variable (Settings | Path variables) which points to
"C:/apache-tomcat-6.0.24". IDEA will automatically replace all occurrences of that path in config files.

In my Tomcat run config xml I have the following

]]>


The problem with that is that it is a relative path to my home directory.
This isn't much use when checking in to version control as other people will have the project in different relative paths to their home directories.
I think IDEA automatically updates it, but it means that the Tomcat run config is always marked as changed.

Is there a $HOME variable or some such we can use instead?

The startup config also has full paths in it

>         
>         
>         
>         
>       ]]>

What happens when the next user has a different tomcat installation directory?

Can we use $CATALINA_HOME or some other variable so that IDEA uses the registered Tomcat directory (settings - application servers - Tomcat server)?

---
Original message URL: http://www.jetbrains.net/devnet/message/5264197#5264197



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.