Permlink Replies: 29 - Pages: 2 [ Previous | 1 2 ] - Last Post: 28-Apr-2012 13:53 Last Post By: MarkE
alan927

Posts: 2,658
Registered: 06/18/05
Re: Ignore Pattern
Posted: 27-Jul-2006 01:25   in response to: MarkE in response to: MarkE
  Click to reply to this thread Reply
Do you need the (\..*)?

Don't know for sure. It's there by default, so I left it there. If it ain't broke...

This ignore pattern feature has some bugs... off to the bug report discussion.
MarkE

Posts: 4,564
Registered: 04/24/06
Re: Ignore Pattern
Posted: 27-Jul-2006 01:51   in response to: alan927 in response to: alan927
  Click to reply to this thread Reply
Do you need the (\..*)?

Don't know for sure. It's there by default, so I
left it there. If it ain't broke...

Yeah, but did you try removing it on your test album?

Mrk
jGromit

Posts: 31,575
Registered: 01/31/06
Re: Ignore Pattern
Posted: 27-Jul-2006 13:29   in response to: alan927 in response to: alan927
  Click to reply to this thread Reply
Do you need the (\..*)?

Don't know for sure. It's there by default, so I
left it there. If it ain't broke...


I believe that pattern is there to exclude files that have extensions, but no names. You're not going to see files like that on your PC, but on most web servers, you might encounter them, and they're there to do things like controlling directory access (like the .htaccess file). So, if you're running JAlbum on a server, you want to skip over those kinds of files. I would think that JAlbum would ignore them, in any case, but better safe than sorry.
MarkE

Posts: 4,564
Registered: 04/24/06
Re: Ignore Pattern
Posted: 27-Jul-2006 13:53   in response to: jGromit in response to: jGromit
  Click to reply to this thread Reply
I believe that pattern is there to exclude files that
have extensions, but no names. You're not going to
see files like that on your PC, but on most web
servers, you might encounter them, and they're there
to do things like controlling directory access (like
the .htaccess file). So, if you're running JAlbum on
a server, you want to skip over those kinds of files.
I would think that JAlbum would ignore them, in any
y case, but better safe than sorry.

Understood. But in the case described where the expression use to ignore the 2 folders "Animations" and "Wallpaper" only (the only is my assumption)

(\..*)|(Animations)|(Wallpaper)

then surely all that is needed is

Animations)|(Wallpaper)?

Mark
jGromit

Posts: 31,575
Registered: 01/31/06
Re: Ignore Pattern
Posted: 27-Jul-2006 15:05   in response to: MarkE in response to: MarkE
  Click to reply to this thread Reply
Well, yes, obviously, ...unless you're going to run JAlbum on a server where it might encounter those "nameless" kinds of files. In short, there's no harm in leaving it there, but in most typical user environments, it's not going to make any difference either way.
MarkE

Posts: 4,564
Registered: 04/24/06
Re: Ignore Pattern
Posted: 27-Jul-2006 15:36   in response to: jGromit in response to: jGromit
  Click to reply to this thread Reply
Okey-dokey

ps do you think there's a limit to how many folders one can ignore?

Message was edited by: Mark E

jGromit

Posts: 31,575
Registered: 01/31/06
Re: Ignore Pattern
Posted: 27-Jul-2006 16:32   in response to: MarkE in response to: MarkE
  Click to reply to this thread Reply
ps do you think there's a limit to how many folders
one can ignore?

Only the programmer would know for sure. Like all such things, there is, of necessity, a limit to the size of the string it can handle, and to the size of the array that stores the list of things to ignore, but you'd need to see the source code to nail it down.
MarkE

Posts: 4,564
Registered: 04/24/06
Re: Ignore Pattern
Posted: 27-Jul-2006 16:59   in response to: jGromit in response to: jGromit
  Click to reply to this thread Reply
I sure don't want to go there!
camner

Posts: 1,779
Registered: 09/24/03
Re: Ignore Pattern
Posted: 27-Jul-2006 17:07   in response to: MarkE in response to: MarkE
  Click to reply to this thread Reply
The purpose of the
(\.|_)
portion of the 'ignore pattern' is so that JA doesn't process any files that a begin with a period (dot) or an underscore. This is not only because some people run JA on a server. Mac/Unix systems reserve filenames beginning with period (dot) for system files. They're all over the place, but they are invisible to the user (though not to software, of course). One wouldn't want JA to think of those files, that may be hanging around an input folder, as "images" to process. From the early days on, JA had the convention of ignoring files that began with '_' (underscore) as a way for skin authors and users to have files in the input folder (such as .mp3 files or .jpg files that were only used for folder thumbnails, etc.) that shouldn't be processed by JA as 'images'. Now with the new Edit tab function that allows users to exclude files on a case by case basis, this is less necessary, perhaps.
jGromit

Posts: 31,575
Registered: 01/31/06
Re: Ignore Pattern
Posted: 27-Jul-2006 17:18   in response to: camner in response to: camner
  Click to reply to this thread Reply
Thanks for the clarification, camner. I wasn't aware of the proliferation of those kinds of files on a Mac, though since the newest MAC OS is Unix-based, it shouldn't have come as a surprise. All the more reason to leave that default in place.
MarkE

Posts: 4,564
Registered: 04/24/06
Re: Ignore Pattern
Posted: 03-Nov-2006 13:01   in response to: jGromit in response to: jGromit
  Click to reply to this thread Reply
Following on from the discussion of the use of the "|", I have created a batch file that excludes a folder, using the console mode command line -ignorePattern panoramics. This works OK.

However, if I try the same text as in my actual project file

-ignorePattern=(\..*|panoramics)

or the simpler example

-ignorePattern panoramics|mark

it doesn't work.

Any ideas anyone? How would you exclude 2 folders when using console mode?

Cheers,

Mark
davidekholm

Posts: 20,917
Registered: 10/18/02
Re: Ignore Pattern
Posted: 03-Nov-2006 13:36   in response to: MarkE in response to: MarkE
  Click to reply to this thread Reply
The "|" sign is interpreted by the command shell / console window as a pipe character (input/output redirection between programs) and never passed to JAlbum unless you escape it somehow (try \| for instance).

A workaround is to create a minimal project file and in that file write:
-ignorePattern=(\..*|panoramics)
Save it as "something.jap" and now type:
java -Xmx400M -jar JAlbum.jar -projectFile something.jap [add your other parameters here]
MarkE

Posts: 4,564
Registered: 04/24/06
Re: Ignore Pattern
Posted: 03-Nov-2006 13:59   in response to: davidekholm in response to: davidekholm
  Click to reply to this thread Reply
The "|" sign is interpreted by the command shell /
console window as a pipe character (input/output
redirection between programs) and never passed to
JAlbum unless you escape it somehow (try \| for
instance).

A workaround is to create a minimal project file and
in that file write:
-ignorePattern=(\..*|panoramics)
Save it as "something.jap" and now type:
java -Xmx400M -jar JAlbum.jar -projectFile
something.jap [add your other parameters here]


David,

Welcome back!

Thanks for the 2 pointers. I'll try the 1st ....

As for the 2nd, that obviously means more jap files .... and the reason for me going down the batch file route (using a single base jap file and command line tweaks) is that I was having problems keeping the many jap files updated with the latest Chamaleon updates :D . But I appreciated the workaround tip, thanks.

Mark
MarkE

Posts: 4,564
Registered: 04/24/06
Re: Ignore Pattern
Posted: 04-Nov-2006 14:31   in response to: davidekholm in response to: davidekholm
  Click to reply to this thread Reply
The "|" sign is interpreted by the command shell /
console window as a pipe character (input/output
redirection between programs) and never passed to
JAlbum unless you escape it somehow (try \| for
instance).

Dave,

I tried a number of things to try and get the console window to accept more than one folder to exclude .... like video|test, video\|test,\video\|\test etc etc. No luck.

Are we saying, then, that the exclude works differently when in the console window vs the project file? Seems a shame.

I have noted your other workaround suggestion.

Cheers,

Mark
MarkE

Posts: 4,564
Registered: 04/24/06
Re: Ignore Pattern
Posted: 28-Apr-2012 13:53   in response to: MarkE in response to: MarkE
  Click to reply to this thread Reply
MarkE wrote:
The "|" sign is interpreted by the command shell /
console window as a pipe character (input/output
redirection between programs) and never passed to
JAlbum unless you escape it somehow (try \| for
instance).

Dave,

I tried a number of things to try and get the console window to accept more than one folder to exclude .... like video|test, video\|test,\video\|\test etc etc. No luck.


Re-visted in 2012 (!)

Even though I remember using quotes before without success (see Ignore Pattern & Console Mode), it's worth adding to this thread :

I re-tried the use of quotes to surround the argument, and now I find it works OK. For instance, to build an album excluding movie files, I used the Console Mode parameter
-ignorePattern ".*\.avi|.*\.wmv"


which does indeed exclude .avi and .wmv files.

Similarly,
-ignorePattern "AVI|WMV"


excludes folders named AVI & WMV.

Mark

Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums