Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel

Anchor
Customizing the project JAR
Customizing the project JAR

Section 2: Customizing the project JAR

  1. Run Eclipse.  From the Project Explorer View, open the Maven JAR project that you want to customize.
    Your Project Explorer View should look similar to the following:
  2. Expand your project, then expand src/main/resources.
    Your Project Explorer View should look similar to the following:
  3. Open the applicationContext-csf-projectName-config.xml for editing and change the following lines substituting your short project acronym for projectName.
    The are 3 occurances of projectName that have to be changed.
    Code Block
        <bean id="csfProjectNameMappingResources" class="org.springframework.beans.factory.config.ListFactoryBean" parent="commonHibernateMappingResources">
        <bean id="hibernateCsfProjectNameMappingResources" class="org.springframework.beans.factory.config.ListFactoryBean" parent="csfProjectNameMappingResources">
    
    When you have made all the changes, the lines you have changed should look similar to the following:
    Code Block
        <bean id="csfAttMappingResources" class="org.springframework.beans.factory.config.ListFactoryBean" parent="commonHibernateMappingResources">
        <bean id="hibernateCsfAttMappingResources" class="org.springframework.beans.factory.config.ListFactoryBean" parent="csfAttMappingResources">
    
    In the above example, ProjectName was replaced with the short project acronym Att.
    When you are satisifed with the changes, save and close the file.
    Image Added
  4. Open the applicationContext-csf-projectName.xml for editing and change the following lines substituting your short project acronym for projectName.
    There are 3 occurances of projectName that have to be changed.
    Code Block
        <import resource="classpath*:applicationContext-csf-projectName-component-scan.xml" />
        <import resource="classpath*:applicationContext-csf-projectName-config.xml" />
        <import resource="classpath*:applicationContext-csf-projectName-security-spring.xml" />
    
    When you have made all the changes, the lines you have changed should look similar to the following:
    Code Block
        <import resource="classpath*:applicationContext-csf-att-component-scan.xml" />
        <import resource="classpath*:applicationContext-csf-att-config.xml" />
        <import resource="classpath*:applicationContext-csf-att-security-spring.xml" />
    
    In the above example, projectName was replaced with the short project acronym att.
    When you are satisifed with the changes, save and close the file.
  5. From the Project Explorer View, rename each of the following files, substituting your short project acronym for projectName.
    There are 4 files that have to be renamed.
    Code Block
        applicationContext-csf-projectName.xml
        applicationContext-csf-projectName-component-scan.xml
        applicationContext-csf-projectName-config.xml
        applicationContext-csf-projectName-security.xml
    
    When you have made all the changes, the file names that you have changed should look similar to the following:
    Code Block
        applicationContext-csf-att.xml
        applicationContext-csf-att-component-scan.xml
        applicationContext-csf-att-config.xml
        applicationContext-csf-att-security.xml
    
    In the above example, projectName was replaced with the short project acronym att.
    Your Project Explorer View should look similar to the following:

    When you are satisifed with the changes, save and close the file.
  6. Commit all changes to the SVN repository.

Customizing the project JAR is now complete.

...