Example #1
0
        private void GenerateTypedEntity(String baseFolder, IList <FrameworkEntity> entities, Framework f, FrameworkEntity e, String sourcePath, String destinationPath)
        {
            String      file;
            TypedEntity entity = BaseEntity.LoadFrom <TypedEntity> (sourcePath);

            // Make sure that availability is ready
            entity.AdjustAvailability();

            this.Log(Level.Info, String.Format("Generating '{0}'...", e.name));

            if (entity.Generate)
            {
                file = destinationPath + ".cs";
                this.Generate <TypedGenerator>(f, entity, file);
            }
        }