Forum > General

Issues publishing a project (No subdirectories incl., no non-Pas. files incl.?)

(1/14) > >>

BrainChemistry:
EDIT: Since nobody responded, I try to re-phrase my problems/question:

Hi there,

Problem #1:
If I publish a project, files (mostly units) which are included in subdirectories of the original project are not included in the published project, although I added them to the project in the project inspector. In other words, only the files in the project's main dir. are also found in the folder of the published project.

What I would like to achieve/Question #1:
I would like to have ALL files to be included in the published project within the corresponding relative subdirectories. Is this a lacking feature or am I doing it wrong?

Problem #2:
If I have files which are no units (e.g. configuration files (e.g. *.ini), which are e.g. plain text files), but are still necessary for the project to run (and are located in the project's main dir.), they are not shared in the published project. It doesn't seem to matter if I add them manually to the project in the project inspector or not. - If I add them in the project inspector, they are seen in the project inspector of the published project though, but are stroken through (since the files are not shared along in the published project).

The only partial solution is, to set the include-filter to allow for this type of file ending. In this case though, ALL files with that file ending, regardless if they have been added to the project in the project inspector or not, are shared along with the project.

What I would like to achieve/Question #2:
Well, I would like to accompany all files really necessary for my project to it. But I wouldn't like to find ALL files which happen to have the same ending also to be shared if they do not belong to the project. How can I achieve this? 

Thanks for your help.

ASBzone:
What versions of FPC / Lazarus are you running, btw?

Handoko:

--- Quote from: BrainChemistry on August 02, 2018, 02:51:25 pm ---If I publish a project, files (mostly units) which are included in subdirectories of the original project are not included in the published project, although I added them to the project in the project inspector. In other words, only the files in the project's main dir. are also found in the folder of the published project.

--- End quote ---

I tested on Lazarus 1.8.4 Linux, yes I can reproduce this behavior. The *.pas files in a sub directory won't be included, even it's already included in the project inspector.

I don't use Publish Project feature because I personally think manually copy/paste is easier. But the bug should be fixed, please submit your bug report and feature request at the bug tracker forum:
https://bugs.freepascal.org/my_view_page.php

tudi_x:
@Handoko
what copy / paste does not solve and Publish Project should solve is updating the paths of files to the folder to where the publish is done.

@BrainChemistry
please add the update of the path attribute to new publish folder if possible in the bug. currently we cannot test if this happens due to the bug.
please advise on the bug entry number.
thank you

JuhaManninen:

--- Quote from: tudi_x on August 08, 2018, 11:59:16 am ---what copy / paste does not solve and Publish Project should solve is updating the paths of files to the folder to where the publish is done.

--- End quote ---
What paths do you mean? "Other unit files" and "Include files" should only contain relative paths which are part of the project, thus moving the project to another place always works.

Package dependencies are another issue. Should Publish Project deal with them somehow? Maybe not. Packages must be moved / installed separately.

Anyway the Publish Project feature should be fixed. It should also optionally compress the resulting project.

Navigation

[0] Message Index

[#] Next page

Go to full version