GPL confusion - why are things being overwritten?

This forum is for all Flare issues related to importing files or projects.
Post Reply
ChoccieMuffin
Senior Propellus Maximus
Posts: 2630
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

GPL confusion - why are things being overwritten?

Post by ChoccieMuffin »

Afternoon all. I've been messing around with my import files in a text editor and have managed to get myself in a tizz and don't know how to untangle myself.

My target project contains an import file to import all files from Globals. The file is kept in source control (outside of Flare) and is as naked as I can keep it (see below).
All the folder locations are the same as they have been for months and months, so no path changes.
In my target project, if I run the import file, it imports the files as expected.
BUT, when I build a target, the imports all run (including Globals) BUT for some reason the files that end up in the target project are really old versions from several months back.
If I run the import file again, it indicates that for a lot of the files, the source is newer.

Any clues on where I should start looking?

I have closed Flare, and in Windows Explorer deleted Output and Analyzer folders in both Globals and the target project.

This is the import file In my target project:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<CatapultProjectImport 
	AutoSync="true"
	IncludeLinkedFiles="false" 
	IncludePattern="*.htm;*.html;*.flcts;*.flfts;*.flmsp;*.flpgl;*.png;*.bmp;*.jpg;*.css;*.flvar;*.fltoc;*.flsnp;*.flskn;*.flrep" 
	DeleteStale="true" 
	ConditionTagExpression="include[Primary.Globals] " 
	AutoExcludeNonTaggedFiles="true">
    <Files>
        <Url Source="../../../Globals/Globals.flprj" />
    </Files>
</CatapultProjectImport>
An example target in the target project is like this:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<CatapultTarget
  Version="2"
  Comment="Adobe PDF Target"
  Type="PDF"
  MasterToc="/Project/TOCs/PDF_PI_UG.fltoc"
  MasterPageLayout="/Content/Resources/PageLayouts/Chapters.flpgl"
  MasterStylesheet="/Content/Resources/Stylesheets/ProphetStylesheet.css"
  ConditionTagExpression="include[PE.PI_Only or PE.WithoutCBL or not ( PE.WithCBL or PE.AM_Only or PE.PE_Only or ( PE.PI_Only and Primary.ScreenOnly ) or Primary.BulletinOnly or Primary.HelpAPIOnly or Primary.HelpWithoutF1 or Primary.ScreenOnly or Primary.ScreenOnlyHyperlink)]"
  DisableAutoSync="false"
  OutputFile="Production_Interface_User_Guide">
  <DocumentProperties
    Author="© xxx"
    Title="xxx" />
  <PDF
    ShowUsedBookmarks="false"
    InitialMagnification="100"
    PageMode="UseOutlines"
    TitleBar="DocumentTitle"
    CollapsedBookmarks="true"
    PageLayout="OneColumn" />
  <PrintedOutput
    CollapseMargins="true" />
</CatapultTarget>
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
techwriter31
Propellus Maximus
Posts: 551
Joined: Wed Mar 05, 2008 10:50 am

Re: GPL confusion - why are things being overwritten?

Post by techwriter31 »

Are the local files that should be overwritten in a read-only state? If so, the import will appear to work but will actually silently fail.

You could try getting a lock / checkout the entire project (making all files read-write) and then retry the import. (I often found this easier than hand-picking the files to get a lock on.)

Not sure if this is causing your problem, but it's a gotcha we always ran into.
Kellie
NorthEast
Master Propellus Maximus
Posts: 6359
Joined: Mon Mar 05, 2007 8:33 am

Re: GPL confusion - why are things being overwritten?

Post by NorthEast »

You say "the imports all run", so you presumably have more than one import file.

Have you checked that the other import files aren't importing some of the same files as your globals import, and overwriting them?
ChoccieMuffin
Senior Propellus Maximus
Posts: 2630
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: GPL confusion - why are things being overwritten?

Post by ChoccieMuffin »

Dave Lee wrote:You say "the imports all run", so you presumably have more than one import file.

Have you checked that the other import files aren't importing some of the same files as your globals import, and overwriting them?
Thanks Dave, yes I've checked. All my other imports explicitly state exclude Primary.Globals, specifically to avoid importing anything from Globals more than once.

I think I've managed to confuse my local setup (as we don't use Flare's integration with SVN) so my solution for this one was to start with a clean checkout from SVN and then rebuild. Looking at those outputs, it's all looking as it's supposed to look.

Thanks for your assistance - as expected it was a PIBCAC situation. :mrgreen:
(Problem Is Between Computer And Chair.)
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Post Reply