Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Focus project files versus version control

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Focus project files versus version control
 Login/Join
 
Virtuoso
posted
Hello all,

I need a bit of advice on this topic.
We have a bunch of project directories, each of course with their own Focus Project (.gfa) file, and we've stored our project tree in Subversion.

The problem is that those Project Files cause no end of merging conflicts in our version control system.

I don't think we can leave them out of version control althogether, as they store information that allows Developer Studio to see a project at all (I don't think a project shows up in the project tree in Dev Studio if it doesn't have a project file?), which files are part of the project and information about last modification times. It also seems like there are a couple of differences in how, for example, a path gets stored in the Project File; I've seen it use both OS="win" and OS="IBFS", depending on who committed his project file to Subversion.

So on the one hand, it seems that we need these files in version control, but on the other hand they contain information that will be different between different installation locations.

How do people deal with this?

If we leave them out, what kind of problems are we going to run into? If not, how should we deal with conflicts? Which choice did you make?

This message has been edited. Last edited by: Kerry,


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Virtuoso
posted Hide Post
The gfa file should not be stored in any source control program.
That file is being accessed (and changed) more than you would think and it does not contain any specific source code that need to be governed. It is just a means of registering which file belongs to this project.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
That seems to be the way to go about this. I was leaning to that approach myself, but I wasn't sure.

What I thought would be a major problem for us, namely that a fresh checkout won't contain any project files at all and thus would display an empty project tree in Dev Studio, turns out to be a benefit. If combined with access rights, it means that people who can't access a certain project won't be able to create the associated project file, which in turn means that they can only have projects in the project tree (in Dev Studio) that they have access to.

Also, for deploying projects to our production server, we can use the project files on one particular development environment. We just need to make sure not to delete those... That's only a temporary meaasure anyway, deployment should occur via the version control system - we're just not entirely there yet.

Thanks for the answer Smiler


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Virtuoso
posted Hide Post
A related question; Is there a way to quickly recreate the project files of the project directories that someone has access to?

I got as far as:
APP LIST HOLD
DEFINE FILE FOCAPPL
	CMD/A255 = ' APP CREATE ' | APPNAME;
END
TABLE FILE FOCAPPL
PRINT CMD
ON TABLE HOLD AS APPCMD FORMAT ALPHA
END
-RUN
-INCLUDE APPCMD.FTM


But that complains that the application folders already exist, for example:
(FOC36306) APPLICATION test ALREADY EXISTS. RUN DELETE FIRST

I'm assuming that if someone doesn't have access, the above would fail and move on to the next app.

Besides, it doesn't provide any means to specify applications that should be added to the app's path.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Virtuoso
posted Hide Post
quote:
for deploying projects to our production server, we can use the project files on one particular development environment
Are you quite sure you want to have projects visible on your production server? In my view these things should only be available on development and test, not on production.
quote:
Is there a way to quickly recreate the project files
What is it that you would want to accomplish with (re)creating the app folders? The APP CREATE command only creates a directory file, nothing more, nothing less.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
quote:
Originally posted by GamP:
quote:
for deploying projects to our production server, we can use the project files on one particular development environment
Are you quite sure you want to have projects visible on your production server? In my view these things should only be available on development and test, not on production.


I think you're misunderstanding what I wrote; we need those project files for deployment, as they contain the deployment information. It's contained in the XML. Those project files won't be deployed to the production server of course.

quote:
quote:
Is there a way to quickly recreate the project files
What is it that you would want to accomplish with (re)creating the app folders? The APP CREATE command only creates a directory file, nothing more, nothing less.


I'm trying to make projects that someone has access to visible in Dev Studio without having to click each project and select "New Project...", filling out the fields, adding the right files to the project, etc. I was hoping to script that, and possibly add that script to our SVN repository for others to use as well.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Focus project files versus version control

Copyright © 1996-2020 Information Builders