001package edu.pdx.cs410J.grader;
002
003import jakarta.mail.MessagingException;
004
005import java.io.File;
006import java.io.IOException;
007import java.util.Set;
008
009public class SubmitAndroidProject extends Submit {
010
011  private SubmitAndroidProject() {
012
013  }
014
015  @Override
016  protected boolean canBeSubmitted(File file) {
017    return fileExists(file) && getZipEntryNameFor(file) != null;
018  }
019
020  @Override
021  protected void warnIfMainProjectClassIsNotSubmitted(Set<File> sourceFiles) {
022
023  }
024
025  @Override
026  protected void warnIfTestClassesAreNotSubmitted(Set<File> sourceFiles) {
027
028  }
029
030  @Override
031  protected String getZipEntryNameFor(File file) {
032    return AndroidZipFixer.getFixedEntryName(file.getAbsolutePath());
033  }
034
035  public static void main(String[] args) throws IOException, MessagingException {
036    SubmitAndroidProject submit = new SubmitAndroidProject();
037    submit.parseCommandLineAndSubmit(args);
038  }
039
040}