All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.cayenne.project.FileProjectSaver.class Maven / Gradle / Ivy

There is a newer version: 5.0-M1
Show newest version
????4?
C
	?
	?	?	?
 ! "#
$	?%&
*'
(
?)*+
,
-$./ 01 2	?345=6
?789
?:
?;
?<
?=
?>
?@
1A=B C
?DEF
7G H
1I
1J
1KL
1M
NO
1PQRS
AT
7U
1V
WX
WY
WZ[
W\
7]
W^_
W`a
Wb
*cd
We
1fg
6T
1h
Wijkl
\m
[n
Zo
?p
Zqr
bstu
dTvw
gT
1xy
?z
k{|}
n~
n?0?
1?
???
W????
W?
??
z?
y???
???
W?
*????SaveUnitInnerClasses
nameMapper:Lorg/apache/cayenne/configuration/ConfigurationNameMapper;RuntimeVisibleAnnotationsLorg/apache/cayenne/di/Inject;resourceGetter;Lorg/apache/cayenne/configuration/ConfigurationNodeVisitor;	SignaturecLorg/apache/cayenne/configuration/ConfigurationNodeVisitor;saveableNodesGetter?Lorg/apache/cayenne/configuration/ConfigurationNodeVisitor;>;fileEncodingLjava/lang/String;
extensionsLjava/util/Collection;OLjava/util/Collection;delegate4Lorg/apache/cayenne/project/extension/SaverDelegate;(Ljava/util/List;)VCodeLineNumberTableLocalVariableTable	extension7Lorg/apache/cayenne/project/extension/ProjectExtension;this-Lorg/apache/cayenne/project/FileProjectSaver;Ljava/util/List;	delegatesLocalVariableTypeTableILjava/util/List;LLjava/util/Collection;
StackMapTable??/?L(Ljava/util/List;)V"RuntimeVisibleParameterAnnotationsgetSupportedVersion()Ljava/lang/String;save'(Lorg/apache/cayenne/project/Project;)Vproject$Lorg/apache/cayenne/project/Project;saveAsM(Lorg/apache/cayenne/project/Project;Lorg/apache/cayenne/resource/Resource;)V
baseDirectory&Lorg/apache/cayenne/resource/Resource;N(Lorg/apache/cayenne/project/Project;Lorg/apache/cayenne/resource/Resource;Z)VnamingDelegateunitSaverDelegatefileNametargetLocationtargetResourcenode4Lorg/apache/cayenne/configuration/ConfigurationNode;unit6Lorg/apache/cayenne/project/FileProjectSaver$SaveUnit;unusedResourcesexLjava/io/IOException;baseResourcedeleteOldResourcesZnodesunitsOLorg/apache/cayenne/configuration/ConfigurationNodeVisitor;&Ljava/util/Collection;LLjava/util/Collection;NLjava/util/Collection;&L29rEcreateSaveUnit?(Lorg/apache/cayenne/configuration/ConfigurationNode;Lorg/apache/cayenne/resource/Resource;Lorg/apache/cayenne/project/extension/SaverDelegate;)Lorg/apache/cayenne/project/FileProjectSaver$SaveUnit;e$Ljava/lang/IllegalArgumentException;	targetUrlLjava/net/URL;@??QcheckAccess(Ljava/util/Collection;)V
targetFileLjava/io/File;parent?Q(Ljava/util/Collection;)VsaveToTempFilesprintWriterLjava/io/PrintWriter;&Ljava/io/UnsupportedEncodingException;Ljava/io/FileNotFoundException;namejtvsaveToTempFileN(Lorg/apache/cayenne/project/FileProjectSaver$SaveUnit;Ljava/io/PrintWriter;)Vvisitorencoder$Lorg/apache/cayenne/util/XMLEncoder;>Lorg/apache/cayenne/configuration/ConfigurationNodeVisitor<*>;?
saveCommit Ljava/net/MalformedURLException;tempFile?clearTempFilesclearRenamedFiles
sourceFilexunit	sourceUrlisTarget
Exceptions
isFilesEquals(Ljava/io/File;Ljava/io/File;)Z	firstFile
secondFileisFirstFileExistsisSecondFileExists
firstFilePathsecondFilePathdeleteUnusedFiles
unusedFileunusedResource)(Ljava/util/Collection;)V
SourceFileFileProjectSaver.java??4org/apache/cayenne/project/ConfigurationSourceGetter??.org/apache/cayenne/project/SaveableNodesGetter??UTF-8????java/util/ArrayList????????????5org/apache/cayenne/project/extension/ProjectExtension????0org/apache/cayenne/project/CompoundSaverDelegate????"org/apache/cayenne/project/Project??????java/lang/NullPointerExceptionNull 'baseDirectory'??????java/util/Collection???2org/apache/cayenne/configuration/ConfigurationNode???????????java/lang/String????????????4org/apache/cayenne/project/FileProjectSaver$SaveUnit??????
?java/io/IOException*org/apache/cayenne/CayenneRuntimeException??????????$org/apache/cayenne/resource/Resource???????"java/lang/IllegalArgumentException^Can't save configuration to the following location: '%s'. Is this a valid file location?. (%s)java/lang/Object?????????????&Error creating directory tree for '%s'??????Target file '%s' is a directory??Can't write to file '%s'????cayenne-project????Error creating temp file (%s)????java/io/PrintWriterjava/io/OutputStreamWriterjava/io/FileOutputStream??????????java/lang/Throwable??$java/io/UnsupportedEncodingExceptionUnsupported encoding '%s' (%s)java/io/FileNotFoundExceptionFile not found '%s' (%s)??-org/apache/cayenne/project/ConfigurationSaver????"org/apache/cayenne/util/XMLEncoder	??&?????????%Unable to remove old master file '%s'??Unable to move '%s' to '%s'4org/apache/cayenne/project/ConfigurationSourceSetter'org/apache/cayenne/resource/URLResource?????????java/net/MalformedURLExceptionMalformed URL for file '%s'Could not delete file '%s'????java/net/URL+org/apache/cayenne/project/FileProjectSaver'org/apache/cayenne/project/ProjectSaverjava/util/Listjava/util/Iterator2org/apache/cayenne/project/extension/SaverDelegatejava/io/File9org/apache/cayenne/configuration/ConfigurationNodeVisitor()Vsize()I(I)Viterator()Ljava/util/Iterator;hasNext()Znext()Ljava/lang/Object;createSaverDelegate6()Lorg/apache/cayenne/project/extension/SaverDelegate;add(Ljava/lang/Object;)ZvalueOf(I)Ljava/lang/String;getConfigurationResource(()Lorg/apache/cayenne/resource/Resource;(Ljava/lang/String;)VgetRootNode6()Lorg/apache/cayenne/configuration/ConfigurationNode;
acceptVisitorO(Lorg/apache/cayenne/configuration/ConfigurationNodeVisitor;)Ljava/lang/Object;setBaseDirectory)(Lorg/apache/cayenne/resource/Resource;)V8org/apache/cayenne/configuration/ConfigurationNameMapperconfigurationLocationH(Lorg/apache/cayenne/configuration/ConfigurationNode;)Ljava/lang/String;getRelativeResource:(Ljava/lang/String;)Lorg/apache/cayenne/resource/Resource;createNamingDelegate=()Lorg/apache/cayenne/configuration/ConfigurationNodeVisitor;getUnusedResources()Ljava/util/Collection;
access$000^(Lorg/apache/cayenne/project/FileProjectSaver$SaveUnit;)Lorg/apache/cayenne/resource/Resource;getURL()Ljava/net/URL;remove(Ljava/lang/Throwable;)Vclear0(Lorg/apache/cayenne/project/FileProjectSaver;)V
access$102?(Lorg/apache/cayenne/project/FileProjectSaver$SaveUnit;Lorg/apache/cayenne/configuration/ConfigurationNode;)Lorg/apache/cayenne/configuration/ConfigurationNode;
access$202?(Lorg/apache/cayenne/project/FileProjectSaver$SaveUnit;Lorg/apache/cayenne/project/extension/SaverDelegate;)Lorg/apache/cayenne/project/extension/SaverDelegate;
access$002?(Lorg/apache/cayenne/project/FileProjectSaver$SaveUnit;Lorg/apache/cayenne/resource/Resource;)Lorg/apache/cayenne/resource/Resource;org/apache/cayenne/util/UtiltoFile(Ljava/net/URL;)Ljava/io/File;
access$302T(Lorg/apache/cayenne/project/FileProjectSaver$SaveUnit;Ljava/io/File;)Ljava/io/File;
getMessage=(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V
access$300F(Lorg/apache/cayenne/project/FileProjectSaver$SaveUnit;)Ljava/io/File;
getParentFile()Ljava/io/File;existsmkdirsgetAbsolutePath((Ljava/lang/String;[Ljava/lang/Object;)VisDirectorycanWritegetNamelengthcreateTempFileB(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
access$402
access$400delete(Ljava/io/File;)V+(Ljava/io/OutputStream;Ljava/lang/String;)V(Ljava/io/Writer;)Vclose
addSuppressed
access$200l(Lorg/apache/cayenne/project/FileProjectSaver$SaveUnit;)Lorg/apache/cayenne/project/extension/SaverDelegate;^(Ljava/io/PrintWriter;Ljava/lang/String;Lorg/apache/cayenne/project/extension/SaverDelegate;)V<(Ljava/io/PrintWriter;Ljava/lang/String;Ljava/lang/String;)Vprintln8(Ljava/lang/String;)Lorg/apache/cayenne/util/XMLEncoder;
setXMLEncoder'(Lorg/apache/cayenne/util/XMLEncoder;)V
access$100l(Lorg/apache/cayenne/project/FileProjectSaver$SaveUnit;)Lorg/apache/cayenne/configuration/ConfigurationNode;java/lang/SystemgcrenameTo(Ljava/io/File;)ZtoURI()Ljava/net/URI;java/net/URItoURL(Ljava/net/URL;)VgetCanonicalPathequals!?C????????????????????????l*?*?Y??*?Y??*?	*+?
?Y+??
M+?N-??-??:,??W???*?Y,????.?@AD F%G3HNI\J_KkL?*N??l??l??39???l??39????:?????$???????0
???P??????C*++????
U
V????????i,?
?Y??*+,???Z[]^? ??????????gd+?*??? :?Y?!?
:*?,?"?#:?????$:*?%?&:,?':	*	?(?W*?
?#:

??S
??:?):?:
??*:?,?':	*	
?(?W?????]*?+*?,*?-*?.?:*?.??I*?/+?0:?#:??$??1:?2?3?4W???*?5?:?7Y?8?+?0?9???????KN6??#ab"d,fKgXhbisk?l?m?n?o?q?r?t?u?w?z?{?}?~?}?~????0?B?E?K?N?P?Z?c????8???/??
?!???A??X???bv??	K???0??:??P
??d??d??d??d??R??"B???*?8??:??R??"B???m?5????H???????????V????????Z?
????*?B????;r?1Y*?::+?;W-?W?2?
,?>W,?3:???@W?":?7YB?CYSY?DS?E??BMPA?6
?
???+?3?:?B?M?P?R?g?o??HR??r??r??r??r??
h??B0???%?:????????????J?+?#M,???,??1N-?F:?G:?H?!?I??7YJ?CY?KS?L??M??7YN?CY?KS?L??H?!?O??7YP?CY?KS?L???v??6
?? ?'?/?7?E?M?U?k?{??????4 q??'j??w????????????????E????%?????? A+?#M,??3,??1N-?F?Q:?R?S:-?F?G:-?T?UW?:?7YV?CY?WS?E?-?X?H?-?X?YW?ZY?[Y?\Y-?X?]*?	?^?_::*-?`?U??a?H:?c?<?a?4::?:	?!??a?:

?c??a	??H:?7Ye?CY*?	SY?fS?E?:?7Yh?CY-?X?KSY?iS?E???ʱ9FI6???b???b??????b???u??du?g?j??#?,?0?9?F?I?K?c?m?u?????????????????????5?=?@??\	K???a?????"??#??9??#??A??A???A???????(???????????:?????????G?H??
?????????????????B?`??#???????O+?j??kY,*?l*??mN?+?nY,o*?l?p:q?rW+?j?s+?jN+?t-?W??"???+?3?>?C?N??>??+??O??O??O??C?????C???	?'??????+?#M,???,??1N-?F:?u?H?!?Y??7Yv?CY?KS?L?-?X:?w?!?7Yx?CY?KSY?KS?L?-?UW-?j?#-?t?yY?zY?{?|?}?~?W?:?7Y??CY?KS?E???F?}???N?? ?#?+?3AIOYow}
???????>??? ???Or????????????????"???A???-?,B?????????=+?#M,??/,??1N-?X?-?X?H?-?X?YW-?UW??α?+39<? ??=??=???=?????1???????	?+?#M,???,??1N-?2????-?2?3:??:?:????H????6+?#:??&??1:*?F???	6?????!?Y??7Y??CY??S?L???c?/69A?V!#!$$'/*6.9+;->0F1I7L8j9x:{;~=???@?A?D?E?\	6??;??j??/u??>f??LX???????????????L
?????????????
?
?)??"????6????0+?H>,?H6+??:,??:????????HIKLN?H0??0?0?+?%??	???.?????@6
??$U+?#M,??G,???N-??:?:????H?????Y??7Y??CY??S?L????? #A?.RV Z#W%Y(\0]3`;aQdTe?> ?%??()?7?U??U???U???+??????????
??6?
?
1??




© 2015 - 2024 Weber Informatics LLC | Privacy Policy